summaryrefslogtreecommitdiffstats
path: root/scripts/patchfns.in
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-07-26 11:06:55 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-07-26 11:06:55 +0000
commitfdd00b6aca59785c5b422eeddb2a56323fd1f1c4 (patch)
tree9e090795b15e8c2739a8b79f4a4adc15050dd2ba /scripts/patchfns.in
parentf179ef136d4517d0b95fc044816c200e9a27e0e1 (diff)
downloadquilt-fdd00b6aca59785c5b422eeddb2a56323fd1f1c4.tar.gz
- When popping files, go through the list of applied patches
instead of looking at the series file: The series file may have changed.
Diffstat (limited to 'scripts/patchfns.in')
-rw-r--r--scripts/patchfns.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index e2daff8..f16ad4e 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -272,6 +272,25 @@ is_applied()
grep -q -E "^$(quote_re $patch)\$" $DB
}
+applied_patches()
+{
+ [ -e $DB ] || return 1
+ cat $DB
+}
+
+applied_before()
+{
+ local patch=$1
+
+ if [ -n "$patch" ]
+ then
+ @AWK@ '
+ $0 == "'"$patch"'" { exit }
+ { print }
+ ' $DB
+ fi
+}
+
patches_before()
{
local patch=$1