From 2af452a921971d967b22b65cc119a1ace5de6983 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Mon, 29 Oct 2012 16:17:15 +0400 Subject: debmaker: support original_name for links and hardlinks --- scripts/debmaker.pl | 3 +++ 1 file changed, 3 insertions(+) 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}; } } } -- cgit v1.2.3