add -force-defaults to ipkg upgrade command for not prompting the user anything while...
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 20 Jan 2006 16:06:12 +0000 (16:06 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 20 Jan 2006 16:06:12 +0000 (16:06 +0000)
add -force-overwrite to the ipkg upgrade command to work with faulty packets

lib/python/Plugins/update/plugin.py

index 90846f0..eff4b00 100644 (file)
@@ -36,7 +36,7 @@ class Upgrade(Screen):
                        self.close()
        
        def doUpdateDelay(self):
-               lines = os.popen("ipkg update && ipkg upgrade", "r").readlines()
+               lines = os.popen("ipkg update && ipkg upgrade -force-defaults -force-overwrite", "r").readlines()
                string = ""
                for x in lines:
                        string += x