~fta/drobotik/drobotik.head

« back to all changes in this revision

Viewing changes to sync-ppa.pl

  • Committer: Fabien Tassin
  • Date: 2011-05-19 12:40:47 UTC
  • Revision ID: fta@ubuntu.com-20110519124047-kqcn4zvodd6c11dl
* Add a workaround for the dput error

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
        print "*LOG* dput successfully pushed all " . ($#$dput + 1) . " source packages (to $dput_dist)\n";
227
227
      } || do {
228
228
        print "*LOG* dput '$dput_dist' returned with error $?: $!\n";
 
229
        # workaround LP regression. Only the 1st has been uploaded
 
230
        for my $file (@$dput[1..$#$dput]) {
 
231
          system("dput", $dput_dist, $file); # ignore errors, they are expected here :(
 
232
        }
229
233
        for my $file (@$dput) {
230
234
          $file =~ s/(.*)\.changes$/$1\.$dput_dist.upload/;
231
235
          printf "*LOG* dput: %s not uploaded\n", $1 unless -f $file;