From 3e72a734844d73652f26c2a214f6a5737afbd19f Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 28 May 2010 11:24:34 +0200 Subject: [PATCH] * edit-patch: - support full path to the patch as well (LP: #585599) --- debian/changelog | 4 ++++ edit-patch | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/debian/changelog b/debian/changelog index 55b1345..3660016 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sat, 15 May 2010 17:55:22 +0200 diff --git a/edit-patch b/edit-patch index c05cfe4..1f88830 100755 --- a/edit-patch +++ b/edit-patch @@ -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