From e2ef86b3fb387cfd6f64d09662a705afb576ba7b Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 3 Dec 2015 12:27:15 -0600 Subject: [PATCH] copy nscd.c instead; uscan must be called with --no-symlink --- debian/repack | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/repack b/debian/repack index 6c29dde..dbd6b6c 100644 --- a/debian/repack +++ b/debian/repack @@ -42,6 +42,7 @@ use vars qw($DEBUG); use Cwd; use File::Temp qw(tempdir); +use File::Copy qw(copy); my %options = (debug => 0, help => 0, @@ -72,7 +73,7 @@ my $curdir = getcwd; my $orig_dir_name = 'unscd-'.$options{upstream_version}; my $orig_dir_path = File::Spec->catfile($tdir,$orig_dir_name); mkdir($orig_dir_path) or die "Unable to mkdir $orig_dir_path: $!"; -rename($ARGV[0],File::Spec->catfile($orig_dir_path,'nscd.c')) or +copy($ARGV[0],File::Spec->catfile($orig_dir_path,'nscd.c')) or die "Unable to copy $ARGV[0] to $orig_dir_path/nscd.c: $!"; system('tar','-zcf',File::Spec->catfile($curdir, File::Spec->updir(), -- 2.39.2