summaryrefslogtreecommitdiff
path: root/dh_installxfonts
diff options
context:
space:
mode:
authorjoey <joey>1999-11-01 23:16:03 +0000
committerjoey <joey>1999-11-01 23:16:03 +0000
commit067a26d8a40fa40003e0c9b2dfbfa76af71bf59e (patch)
tree1e1cd6746b95f610e46cfa21b07fa24b31eb18ac /dh_installxfonts
parentf352850081b06261306024b92763cdbe24974c53 (diff)
downloaddebhelper-067a26d8a40fa40003e0c9b2dfbfa76af71bf59e.tar.gz
r301: * dh_installxfonts: Patch from Anthony Wong to fix directory searching.
Closes: #48931
Diffstat (limited to 'dh_installxfonts')
-rwxr-xr-xdh_installxfonts5
1 files changed, 3 insertions, 2 deletions
diff --git a/dh_installxfonts b/dh_installxfonts
index e1a46aab..1ceb3cbe 100755
--- a/dh_installxfonts
+++ b/dh_installxfonts
@@ -8,10 +8,11 @@ init();
foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
$TMP=tmpdir($PACKAGE);
+ my $XFONTDIR="$TMP/usr/X11R6/lib/X11/fonts/";
# Find all fint directories in the package build directory.
- opendir DIR, "$TMP/usr/X11R6/lib/X11/fonts/" || next;
- my @fontdirs = grep { -d $_ && !/^\./ } (readdir DIR);
+ opendir DIR, $XFONTDIR || next;
+ my @fontdirs = grep { -d "$XFONTDIR/$_" && !/^\./ } (readdir DIR);
closedir DIR;
if (@fontdirs) {