[debhelper-devel] [debhelper] 01/02: dh_gconf: Prefer install_dir instead of doit(mkdir)

Niels Thykier nthykier at moszumanska.debian.org
Mon May 30 20:37:08 UTC 2016


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

nthykier pushed a commit to branch master
in repository debhelper.

commit 54323d4d4930ed4a746e28311e54e4328788dd1d
Author: Niels Thykier <niels at thykier.net>
Date:   Mon May 30 19:28:18 2016 +0000

    dh_gconf: Prefer install_dir instead of doit(mkdir)
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 dh_gconf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dh_gconf b/dh_gconf
index d401c3e..28793b2 100755
--- a/dh_gconf
+++ b/dh_gconf
@@ -72,7 +72,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 	}
 	my $defaults = pkgfile($package,"gconf-defaults");
 	if ($defaults ne '') {
-		doit("mkdir","-p","$tmp/usr/share/gconf/defaults");
+		install_dir("$tmp/usr/share/gconf/defaults");
 		install_file($defaults, "$tmp/usr/share/gconf/defaults/${priority}_$package");
 	}
 
@@ -81,7 +81,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
 	# Migrate schemas from /etc/gconf/schemas to /usr/share/gconf/schemas
 	if (-d $old_schemas_dir) {
-		doit("mkdir","-p",$new_schemas_dir) unless -d $new_schemas_dir;
+		install_dir($new_schemas_dir) unless -d $new_schemas_dir;
 		complex_doit("mv $old_schemas_dir/*.schemas $new_schemas_dir/");
 		doit("rmdir","-p","--ignore-fail-on-non-empty",$old_schemas_dir);
 	}

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