Changeset 1515 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Base.pm


Ignore:
Timestamp:
May 10, 2012, 12:47:51 PM (12 years ago)
Author:
Bruno Cornec
Message:

r4760@localhost: bruno | 2012-05-10 11:48:21 +0200

  • pb.conf: sudo does not pass through the DEBIAN_FRONTEND variable; use env to make sure it is set. Also change from --force-yes to --allow-unauthenticated (Eric Anderson)
  • Base.pm: Provide a better error message for failures of pb_mkdir_p (Eric Anderson)
  • Distribution.pm: Make sure to apply the ftp/http proxy when installing dependencies. Also add hack to try the install twice if it fails the first time. That may be unnecessary with the DEBIAN_FRONTEND fix, but doesn't hurt. (Eric Anderson)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Base.pm

    r1513 r1515  
    1414use strict;
    1515use lib qw (lib);
    16 use Carp 'cluck';
     16use Carp qw/confess cluck/;
    1717use Cwd;
    1818use File::Path;
     
    109109sub pb_mkdir_p {
    110110my @dir = @_;
    111 my $ret = mkpath(@dir, 0, 0755);
     111my $ret = eval { mkpath(@dir, 0, 0755) };
     112confess "pb_mkdir_p @dir failed in ".getcwd().": $@" if ($@);
    112113return($ret);
    113114}
Note: See TracChangeset for help on using the changeset viewer.