[devscripts] 04/06: Give messages with cleaned-up paths

Joachim Breitner nomeata at moszumanska.debian.org
Sat Apr 12 23:21:51 UTC 2014


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

nomeata pushed a commit to branch mk-origtargz
in repository devscripts.

commit 260d06b7b00b1ab5547a4e0c6a2c449c2358b5bf
Author: Joachim Breitner <nomeata at debian.org>
Date:   Sun Apr 13 01:17:39 2014 +0200

    Give messages with cleaned-up paths
---
 scripts/mk-origtargz.pl | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/scripts/mk-origtargz.pl b/scripts/mk-origtargz.pl
index 1edc438..931f31a 100755
--- a/scripts/mk-origtargz.pl
+++ b/scripts/mk-origtargz.pl
@@ -456,14 +456,17 @@ if ($same_name) {
 
 # Tell the use what we did
 
+my $upstream_nice = File::Spec->canonpath($upstream);
+my $destfile_nice = File::Spec->canonpath($destfile);
+
 if ($is_zipfile or $do_repack or $deletecount) {
-	print "Succesfully repacked $upstream as $destfile";
+	print "Succesfully repacked $upstream_nice as $destfile_nice";
 } elsif ($mode eq "symlink") {
-	print "Succesfully symlinked $upstream to $destfile";
+	print "Succesfully symlinked $upstream_nice to $destfile_nice";
 } elsif ($mode eq "copy") {
-	print "Succesfully copied $upstream to $destfile";
+	print "Succesfully copied $upstream_nice to $destfile_nice";
 } elsif ($mode eq "rename") {
-	print "Succesfully renamed $upstream to $destfile";
+	print "Succesfully renamed $upstream_nice to $destfile_nice";
 } else {
 	die "Unknown mode $mode."
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list