summaryrefslogtreecommitdiffstats
path: root/preps/perl.d/perl-dist
diff options
context:
space:
mode:
Diffstat (limited to 'preps/perl.d/perl-dist')
-rwxr-xr-xpreps/perl.d/perl-dist5
1 files changed, 3 insertions, 2 deletions
diff --git a/preps/perl.d/perl-dist b/preps/perl.d/perl-dist
index fd5c216..4431f77 100755
--- a/preps/perl.d/perl-dist
+++ b/preps/perl.d/perl-dist
@@ -371,6 +371,8 @@ sub printdata
sub writepb
{
my($ddir) = @_;
+
+ print STDERR "DBG: \$ddir = {$ddir}\n";
my $dtype = (-f "$ddir/Build.PL" ? "MB" : "MM");
if(system $PBPROG => $dtype){
return $? >> 8;
@@ -408,8 +410,7 @@ sub main
);
chdir $dir or die "chdir: $!";
-
- my $ret = writepb($dir);
+ my $ret = writepb("$dir/src/$distdir");
if($ret){
print STDERR "$PROG: failed to write PKGBUILD: error $ret\n";
return 1;