* edit-patch:

- support full path to the patch as well (LP: #585599)
This commit is contained in:
Michael Vogt 2010-05-28 11:24:34 +02:00
parent 673d3658d7
commit 3e72a73484
2 changed files with 11 additions and 0 deletions

4
debian/changelog vendored
View File

@ -18,6 +18,10 @@ ubuntu-dev-tools (0.100) UNRELEASED; urgency=low
* syncpackage:
- add more options and allow pulling packages from Debian.
- add mismatching source tarball detection (for fake syncs).
[ Michael Vogt ]
* edit-patch:
- support full path to the patch as well (LP: #585599)
-- Benjamin Drung <bdrung@ubuntu.com> Sat, 15 May 2010 17:55:22 +0200

View File

@ -70,6 +70,12 @@ detect_patchsystem() {
fi
}
# remove full path if given
normalize_patch_path() {
PATCHNAME=${PATCHNAME##*/}
echo "Normalizing patch path to $PATCHNAME"
}
# ensure (for new patches) that:
# - dpatch ends with .dpatch
# - cdbs/quilt with .patch
@ -189,6 +195,7 @@ main() {
# do the work
ensure_debian_dir
detect_patchsystem
normalize_patch_path
normalize_patch_extension
edit_patch_$PATCHSYSTEM $PATCHNAME
add_patch_tagging $PATCHNAME