summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosselin Mouette <joss@debian.org>2015-01-01 20:36:33 +0100
committerNiels Thykier <niels@thykier.net>2015-01-01 20:40:22 +0100
commit22ee2dfd0c67548d9abf62c64e524e55181d22c2 (patch)
treeb75050a623164efdaf47187b02fce5d10d048a56
parentd5c08b71d7a59dfa5e082672ae2548eee7503fda (diff)
downloaddebhelper-22ee2dfd0c67548d9abf62c64e524e55181d22c2.tar.gz
dh_gconf: Only add depends if a scheme is installed
Signed-off-by: Niels Thykier <niels@thykier.net>
-rw-r--r--debian/changelog3
-rwxr-xr-xdh_gconf7
2 files changed, 4 insertions, 6 deletions
diff --git a/debian/changelog b/debian/changelog
index 3fa6ad7a..c106cda6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,9 @@ debhelper (9.20150101.1) UNRELEASED; urgency=medium
invoking dh_link. (Closes: #610173)
* dh_compress: Apply patch from Osamu Aoki to avoid compressing
".xhtml" files. (Closes: #740405)
+ * dh_gconf: Apply patch from Josselin Mouette to avoid
+ dependency on gconf2 for installs of non-schema files.
+ (Closes: #592958)
-- Niels Thykier <niels@thykier.net> Thu, 01 Jan 2015 17:24:38 +0100
diff --git a/dh_gconf b/dh_gconf
index 48b05ba2..7c88293f 100755
--- a/dh_gconf
+++ b/dh_gconf
@@ -63,20 +63,15 @@ if (defined $dh{PRIORITY}) {
foreach my $package (@{$dh{DOPACKAGES}}) {
my $tmp=tmpdir($package);
- my $gconf_dep = 0;
my $mandatory = pkgfile($package, "gconf-mandatory");
if ($mandatory ne '') {
doit("mkdir","-p","$tmp/usr/share/gconf/mandatory");
doit("install","-p","-m644",$mandatory,"$tmp/usr/share/gconf/mandatory/${priority}_$package");
- addsubstvar($package, "misc:Depends", "gconf2 (>= 2.28.1-2)");
- $gconf_dep = 1;
}
my $defaults = pkgfile($package,"gconf-defaults");
if ($defaults ne '') {
doit("mkdir","-p","$tmp/usr/share/gconf/defaults");
doit("install","-p","-m644",$defaults,"$tmp/usr/share/gconf/defaults/${priority}_$package");
- addsubstvar($package, "misc:Depends", "gconf2 (>= 2.28.1-2)") unless $gconf_dep;
- $gconf_dep = 1;
}
my $old_schemas_dir = "$tmp/etc/gconf/schemas";
@@ -93,7 +88,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
# Get a list of the schemas
my $schemas = `find $new_schemas_dir -type f -name \\*.schemas -printf '%P '`;
if ($schemas ne '') {
- addsubstvar($package, "misc:Depends", "gconf2 (>= 2.28.1-2)") unless $gconf_dep;
+ addsubstvar($package, "misc:Depends", "gconf2 (>= 2.28.1-2)");
}
}
}