summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-02-14 14:26:34 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-02-14 14:26:34 +0000
commit3c496a4753ad51a1592fdc5792aff652081db00d (patch)
tree4696d385eb251537656e828f1aafa3c4cd124ff9
parent79a014a2ea88e84ab0f494efcf7a11b92c4bc6af (diff)
downloadquilt-3c496a4753ad51a1592fdc5792aff652081db00d.tar.gz
Clean up messages printed by rpatch/pop
-rw-r--r--quilt/pop.in7
-rwxr-xr-xscripts/rpatch.in10
2 files changed, 8 insertions, 9 deletions
diff --git a/quilt/pop.in b/quilt/pop.in
index 5619106..06b4455 100644
--- a/quilt/pop.in
+++ b/quilt/pop.in
@@ -183,6 +183,13 @@ do
fi
[ -z "$opt_quiet" ] && echo
done
+
+if [ -z "$(top_patch)" ]
+then
+ echo "No patches applied"
+else
+ echo "Now at patch $patch"
+fi
### Local Variables:
### mode: shell-script
### End:
diff --git a/scripts/rpatch.in b/scripts/rpatch.in
index 91d01a5..a8b9c8b 100755
--- a/scripts/rpatch.in
+++ b/scripts/rpatch.in
@@ -141,6 +141,7 @@ rpatch()
return 0
fi
+ echo "Removing $patch"
trap "" SIGINT
if [ -n "$opt_force" ] || \
( [ -z "$opt_remove" ] && ! files_may_have_changed $patch )
@@ -187,15 +188,6 @@ rpatch()
fi
fi
trap - SIGINT
-
- local top=$(top_patch) where
- if [ -z "$top" ]
- then
- where=$"no patch applied"
- else
- where=$"now at $top"
- fi
- echo $"Removed $patch, $where"
}
options=`getopt -o fRqvh -- "$@"`