[pkg-perl-tools] 01/01: Fix patchedit to support $EDITOR to contain commandline options

Axel Beckert abe at deuxchevaux.org
Mon Aug 10 12:35:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch master
in repository pkg-perl-tools.

commit 86bca38ef6265262320c5300f73b39b78727da73
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Mon Aug 10 14:27:52 2015 +0200

    Fix patchedit to support $EDITOR to contain commandline options
    
    Example: EDITOR="emacsclient -a emacs"
---
 bin/patchedit    | 2 +-
 debian/changelog | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/bin/patchedit b/bin/patchedit
index a11aaf0..a2ef4b3 100755
--- a/bin/patchedit
+++ b/bin/patchedit
@@ -309,7 +309,7 @@ sub edit_patch {
     my $patch = shift;
 
     my $editor = $ENV{'EDITOR'} || $ENV{'VISUAL'} || '/usr/bin/editor';
-    system( $editor, $patch );
+    system( "$editor $patch" );
 }
 
 sub _read_patch {
diff --git a/debian/changelog b/debian/changelog
index 64f821b..3f863b4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pkg-perl-tools (0.23) UNRELEASED; urgency=medium
+
+  * Fix patchedit to not expect a file in $PATH as $EDITOR but to support
+    $EDITOR to contain commandline options.
+
+ -- Axel Beckert <abe at debian.org>  Mon, 10 Aug 2015 14:25:39 +0200
+
 pkg-perl-tools (0.22) unstable; urgency=medium
 
   [ gregor herrmann ]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git



More information about the Pkg-perl-cvs-commits mailing list