Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > media > main-testing-src > by-pkgid > 7dfdfa0b22edb12f9c039c085fd8697d > files > 8

codeina-0.10.2-16mdv2009.0.src.rpm

diff -p -up codeina-0.10.2/codeina/__init__.py~ codeina-0.10.2/codeina/__init__.py
--- codeina-0.10.2/codeina/__init__.py~	2008-03-20 14:08:29.000000000 +0100
+++ codeina-0.10.2/codeina/__init__.py	2008-03-21 17:44:03.000000000 +0100
@@ -69,7 +69,7 @@ def run(options, patterns=None):
         print "ImportError:", e
         return 2
 
-    if no_internet:
+    if no_internet and not ('only_update' in options and options['only_update']):
         # we don't have internet, display a notification 
         nonet = ui.NoInternet()
         nonet()