summaryrefslogtreecommitdiff
path: root/dh_installcatalogs
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installcatalogs')
-rwxr-xr-xdh_installcatalogs7
1 files changed, 3 insertions, 4 deletions
diff --git a/dh_installcatalogs b/dh_installcatalogs
index 1a863d5f..af6129ac 100755
--- a/dh_installcatalogs
+++ b/dh_installcatalogs
@@ -82,10 +82,11 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
foreach my $line (filedoublearray($sgmlcatlistfile)) {
my $source = $line->[0];
my $dest = $line->[1];
- my $fulldest = "$tmpdir/$dest";
+ my $fulldest = "$tmpdir/$dest";
$fulldest =~ s|//|/|g; # beautification
if (! -d dirname($fulldest)) {
+ # Ensure the parent exist
install_dir($tmpdir."/".dirname($dest));
}
@@ -97,9 +98,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if (@sgmlinstalled) {
addsubstvar($package, "misc:Depends", "sgml-base", ">= $sgmlbasever");
- if (! -d "$tmpdir/etc/sgml") {
- install_dir("$tmpdir/etc/sgml");
- }
+ install_dir("$tmpdir/etc/sgml");
my $centralcat = "/etc/sgml/$package.cat";