[Mud-builder-commits] r238 - trunk/lib/MUD/Fetch

jaffa at garage.maemo.org jaffa at garage.maemo.org
Thu Jul 10 15:24:21 EEST 2008


Author: jaffa
Date: 2008-07-10 15:24:18 +0300 (Thu, 10 Jul 2008)
New Revision: 238

Modified:
   trunk/lib/MUD/Fetch/Debian.pm
Log:
Use AllowAuthenticated option rather than --force-yes (suggested by Graham Cobb)

Modified: trunk/lib/MUD/Fetch/Debian.pm
===================================================================
--- trunk/lib/MUD/Fetch/Debian.pm	2008-07-09 15:06:15 UTC (rev 237)
+++ trunk/lib/MUD/Fetch/Debian.pm	2008-07-10 12:24:18 UTC (rev 238)
@@ -59,7 +59,7 @@
                                         config => $self->{config} ) unless $::OPTS{'depend-nobuild'};
 
             } else {
-                system('fakeroot', 'apt-get', '-y', '--force-yes', 'install', $dep);
+                $self->apt('install', $dep);
                 next unless $?;
                 my $dpkg = `dpkg -s $dep 2>/dev/null`;
                 print $dpkg;
@@ -137,6 +137,7 @@
     my @args = ('apt-get', '-y',
                            '-o', 'Dir::Etc::SourceList='.$self->{sources}, 
                            '-o', 'APT::Cache-Limit=20000000',
+                           '-o', 'APT::Get::AllowUnauthenticated=1',
                            @_);
     my $data = '';
     unshift @args, 'fakeroot' if -e '/scratchbox/tools/bin/fakeroot';



More information about the Mud-builder-commits mailing list