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

jaffa at garage.maemo.org jaffa at garage.maemo.org
Mon Mar 16 23:53:53 EET 2009


Author: jaffa
Date: 2009-03-16 23:53:53 +0200 (Mon, 16 Mar 2009)
New Revision: 273

Modified:
   trunk/lib/MUD/Fetch/Command.pm
   trunk/lib/MUD/Fetch/Debian.pm
   trunk/lib/MUD/Fetch/Tarball.pm
Log:
Make sure --force-yes is passed to apt-get install, needs a refactor here

Modified: trunk/lib/MUD/Fetch/Command.pm
===================================================================
--- trunk/lib/MUD/Fetch/Command.pm	2009-03-16 21:03:09 UTC (rev 272)
+++ trunk/lib/MUD/Fetch/Command.pm	2009-03-16 21:53:53 UTC (rev 273)
@@ -51,7 +51,7 @@
 	    }
 
 	} else {
-	    system('fakeroot', 'apt-get', '-y', 'install', $dep);
+	    system('fakeroot', 'apt-get', '-y', '--force-yes', 'install', $dep);
 	    next unless $?;
 	    my $dpkg = `dpkg -s $dep 2>/dev/null`;
 	    print $dpkg;

Modified: trunk/lib/MUD/Fetch/Debian.pm
===================================================================
--- trunk/lib/MUD/Fetch/Debian.pm	2009-03-16 21:03:09 UTC (rev 272)
+++ trunk/lib/MUD/Fetch/Debian.pm	2009-03-16 21:53:53 UTC (rev 273)
@@ -137,6 +137,7 @@
     my $self = shift;
 
     my @args = ('apt-get', '-y',
+                           '--force-yes',
                            '-o', 'Dir::Etc::SourceList='.$self->{sources}, 
                            '-o', 'APT::Cache-Limit=20000000',
                            '-o', 'APT::Get::AllowUnauthenticated=1',

Modified: trunk/lib/MUD/Fetch/Tarball.pm
===================================================================
--- trunk/lib/MUD/Fetch/Tarball.pm	2009-03-16 21:03:09 UTC (rev 272)
+++ trunk/lib/MUD/Fetch/Tarball.pm	2009-03-16 21:53:53 UTC (rev 273)
@@ -58,7 +58,7 @@
 		}
 
             } else {
-                system('fakeroot', 'apt-get', '-y', 'install', $dep);
+                system('fakeroot', 'apt-get', '-y', '--force-yes', 'install', $dep);
                 my $dpkg = `dpkg -s $dep 2>/dev/null`;
                 print $dpkg;
                 if ($dpkg !~ /Status: install ok installed/) {



More information about the Mud-builder-commits mailing list