Changeset 139 for devel/pb/bin/pb


Ignore:
Timestamp:
Sep 12, 2007, 11:40:12 AM (12 years ago)
Author:
bruno
Message:

Build on VMs works now with delivery of built packages on the SSH host

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r136 r139  
    454454        $src =~ s/^ *//;
    455455        pb_mkdir_p("$ENV{'PBBUILDDIR'}/$odir/$over");
     456        # Change pgben to make the next send2ssh happy
     457        open(KEEP,"> $ENV{'PBBUILDDIR'}/pbgen-$pbprojver-$pbprojtag") || die "Unable to write $ENV{'PBBUILDDIR'}/pbgen-$pbprojver-$pbprojtag";
     458        my $made = "";
    456459        foreach my $p (split(/ +/,$src)) {
    457             pb_system("scp -p -P $port $mac:\'$bdir/$p\' $ENV{'PBBUILDDIR'}/$odir/$over 2> /dev/null","Package recovery of ".basename($p)." in $tdir from $mac");
    458         }
     460            my $j = basename($p);
     461            pb_system("scp -p -P $port $mac:\'$bdir/$p\' $ENV{'PBBUILDDIR'}/$odir/$over 2> /dev/null","Package recovery of $j in $tdir from $mac");
     462            $made = "$made $odir/$over/$j\n";
     463        }
     464        print KEEP "$made\n";
     465        close(KEEP);
    459466        #pb_system("ssh -q -p $port $mac \"rm -rf dirname("$sshdir->{$ENV{'PBPROJ'}}"); sudo /usr/bin/poweroff\"","VM cleanup and halt on $mac");
    460467        pb_send2ssh("Packages","$odir"."_"."$over");
    461         pb_rm_rf("$ENV{'PBBUILDDIR'}/$odir");
     468        #pb_rm_rf("$ENV{'PBBUILDDIR'}/$odir");
    462469    }
    463470}
Note: See TracChangeset for help on using the changeset viewer.