summaryrefslogtreecommitdiff
path: root/dh_installgsettings
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-08-07 19:14:47 +0000
committerNiels Thykier <niels@thykier.net>2017-08-07 19:14:53 +0000
commit5332dc6aaffdc921d7494cfcae1435f43fca1678 (patch)
tree1379ea4d6c15c29935c891322d685841690d3389 /dh_installgsettings
parentfcd74cc8c1fc3ab3faaa87a36d5ba141dee86e47 (diff)
downloaddebhelper-5332dc6aaffdc921d7494cfcae1435f43fca1678.tar.gz
Avoid some unnecessary shells from qx
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installgsettings')
-rwxr-xr-xdh_installgsettings4
1 files changed, 3 insertions, 1 deletions
diff --git a/dh_installgsettings b/dh_installgsettings
index db0d1032..faedcb7c 100755
--- a/dh_installgsettings
+++ b/dh_installgsettings
@@ -78,7 +78,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if (-d "$gsettings_schemas_dir") {
# Get a list of the schemas
- my $schemas = `find $gsettings_schemas_dir -type f \\( -name \\*.xml -o -name \\*.override \\) -printf '%P '`;
+ my $schemas = qx_cmd('find', $gsettings_schemas_dir, '-type', 'f',
+ '(', '-name', '*.xml', '-o', '-name', '*.override',
+ ')', '-printf', '%P');
if ($schemas ne '') {
addsubstvar($package, "misc:Depends", "dconf-gsettings-backend | gsettings-backend");
}