[debhelper-devel] [debhelper] 02/02: dh_usrlocal: Fix inverted boolean logic

Niels Thykier nthykier at moszumanska.debian.org
Mon Oct 23 21:19:26 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 0fdb77d6c3fc2134200d8e96e4d7fc60a1382909
Author: Niels Thykier <niels at thykier.net>
Date:   Mon Oct 23 21:18:21 2017 +0000

    dh_usrlocal: Fix inverted boolean logic
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 debian/changelog | 3 +++
 dh_usrlocal      | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index b7206c9..b4159db 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,9 @@ debhelper (10.10.3) UNRELEASED; urgency=medium
   * dh_usrlocal: Correct the group name when creating directories
     owned by "root:staff".  Thanks to Paul Gevers for reporting
     the bug.  (Closes: #879643)
+  * dh_usrlocal: Fix inverted boolean logic that made dh_usrlocal
+    ignore ownership of directories when it should have preserved
+    them.
 
  -- Niels Thykier <niels at thykier.net>  Mon, 23 Oct 2017 06:14:30 +0000
 
diff --git a/dh_usrlocal b/dh_usrlocal
index 9d367f5..5e06e65 100755
--- a/dh_usrlocal
+++ b/dh_usrlocal
@@ -85,7 +85,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 				my $user = 'root';
 				my $group = 'staff';
 				my $mode = '02775';
-				if (not should_use_root()) {
+				if (should_use_root()) {
 					my $stat = stat $fn;
 					$user = getpwuid $stat->uid;
 					$group = getgrgid $stat->gid;

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