Because creation of .patches/patch is now delayed,
we couldn't delete it when needed.
Signed-off-by: Neil Brown <neilb@suse.de>
{
get_conf tagline
upgrade_one "$1"
- {
+ { {
[ -s .patches/status ] && echo "Status: `cat .patches/status`"
[ -s .patches/notes ] && { echo; cat .patches/notes ; }
if [ -z "$tagline" ] || grep -F "$tagline" .patches/notes > /dev/null 2>&1
cat .patches/tmp
[ -s .patches/tmp ] || rm .patches/patch
rm .patches/tmp
- } | sed 's,^--- ./.patches/current/,--- .prev/,' > .patches/patch
+ } | sed 's,^--- ./.patches/current/,--- .prev/,' ; } > .patches/patch
}
save_patch()