[devscripts] 01/01: mk-build-deps: Pass the filenames to unlink for --remove

James McCoy jamessan at debian.org
Sat Aug 9 00:08:39 UTC 2014


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

jamessan pushed a commit to branch master
in repository devscripts.

commit 3beb401d91cc86e85f45f0e41fa99d5e84995a8f
Author: James McCoy <jamessan at debian.org>
Date:   Fri Aug 8 20:09:55 2014 -0400

    mk-build-deps: Pass the filenames to unlink for --remove
    
    Closes: #757481
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 debian/changelog         | 2 ++
 scripts/mk-build-deps.pl | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index bc6be8f..32e97d6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ devscripts (2.14.7) UNRELEASED; urgency=low
   * debsign/debi/debc: Delay checking for the existence of the
     --debs-dir/DEBRELEASE_DEBS_DIR directory until we get to code that
     actually uses said directory.  (Closes: #544366)
+  * mk-build-deps: Pass the file, not package, names to unlink when --remove
+    is given.  (Closes: #757481)
 
  -- Cyril Brulebois <kibi at debian.org>  Fri, 08 Aug 2014 01:27:12 +0200
 
diff --git a/scripts/mk-build-deps.pl b/scripts/mk-build-deps.pl
index c84dc38..012c814 100755
--- a/scripts/mk-build-deps.pl
+++ b/scripts/mk-build-deps.pl
@@ -361,7 +361,7 @@ if ($opt_install) {
     }
 
     if ($opt_remove) {
-	foreach my $file (map { $_->{package} } @packages) {
+	foreach my $file (@deb_files) {
 	    unlink $file;
 	}
     }

-- 
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