diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2003-07-26 11:06:55 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2003-07-26 11:06:55 +0000 |
commit | fdd00b6aca59785c5b422eeddb2a56323fd1f1c4 (patch) | |
tree | 9e090795b15e8c2739a8b79f4a4adc15050dd2ba /scripts/patchfns.in | |
parent | f179ef136d4517d0b95fc044816c200e9a27e0e1 (diff) | |
download | quilt-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.in | 19 |
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 |