aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-10-29 16:17:15 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-10-29 16:17:15 +0400
commit2af452a921971d967b22b65cc119a1ace5de6983 (patch)
tree5e80499d747e778c4f82a5bc56812cdacd48a0f9 /scripts
parent395e7b51e815ca4001f99a13c5d0ad9e26954994 (diff)
downloadcibs-2af452a921971d967b22b65cc119a1ace5de6983.tar.gz
debmaker: support original_name for links and hardlinks
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/debmaker.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/debmaker.pl b/scripts/debmaker.pl
index eb61bde..6349270 100755
--- a/scripts/debmaker.pl
+++ b/scripts/debmaker.pl
@@ -714,6 +714,8 @@ foreach my $manifest_file (@ARGV) {
if (!my_hardlink $$link{'target'}, "$pkgdir/$$link{'path'}") {
warning "Adding code to create hardlink at post-install phase";
push @hl_script, $link;
+ } else {
+ push @replaces, get_debpkg_name $$link{original_name} if exists $$link{original_name};
}
}
if (@hl_script) {
@@ -750,6 +752,7 @@ foreach my $manifest_file (@ARGV) {
$prerm .= 'if [ "$1" = remove ]; then $CHROOT update-alternatives --remove ' . "$n $p || true; fi\n";
} else {
my_symlink $$link{'target'}, "$pkgdir/$$link{'path'}";
+ push @replaces, get_debpkg_name $$link{original_name} if exists $$link{original_name};
}
}
}