[debhelper-devel] [debhelper] 01/01: Dh_Lib.pm: Make rename_path do nothing with --no-act

Niels Thykier nthykier at moszumanska.debian.org
Wed Jun 14 17:56:32 UTC 2017


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

nthykier pushed a commit to branch master
in repository debhelper.

commit 7f0d13924135b52f5fd4ad4878ee6b149a4ecfa6
Author: Niels Thykier <niels at thykier.net>
Date:   Wed Jun 14 17:55:44 2017 +0000

    Dh_Lib.pm: Make rename_path do nothing with --no-act
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 Debian/Debhelper/Dh_Lib.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 24cf035..6a5904f 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -383,6 +383,12 @@ sub install_dir {
 
 sub rename_path {
 	my ($source, $dest) = @_;
+
+	if ($dh{VERBOSE}) {
+		my $files = escape_shell($source, $dest);
+		verbose_print("mv $files");
+	}
+	return 1 if $dh{NO_ACT};
 	if (not rename($source, $dest)) {
 		my $files = escape_shell($source, $dest);
 		error("mv $files: $!")

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




More information about the debhelper-devel mailing list