[Apt-offline-devel] [SCM] Offline APT Package Manager branch, master, updated. 0.9.6-11-ge68594a

Ritesh Raj Sarraf rrs at researchut.com
Tue Mar 2 06:13:03 UTC 2010


The following commit has been merged in the master branch:
commit e68594ab3345ad7d446a6f896936d4dba250d6e4
Author: Ritesh Raj Sarraf <rrs at researchut.com>
Date:   Tue Mar 2 11:41:25 2010 +0530

    check for the arg's existence as a file
    
    In the get operation, the arg is going to be _only_ a file, nothing
    else. Thus we ensure to see that the associated arg is actually a
    file (and not a directory)

diff --git a/AptOfflineCoreLib.py b/AptOfflineCoreLib.py
index b4febe6..c0ab39b 100644
--- a/AptOfflineCoreLib.py
+++ b/AptOfflineCoreLib.py
@@ -430,10 +430,10 @@ def fetcher( args ):
                 log.verbose( "\nMD5/SHA256 Checksum is being disabled. You need atleast Python 2.5 to do checksum verification.\n" )
         
         if Str_GetArg:
-                if os.access( Str_GetArg, os.F_OK):
+                if os.path.isfile(Str_GetArg):
                         log.msg( "\nFetching APT Data\n\n" )
                 else:
-                        log.err( "\nFile not present. Check path.\n" )
+                        log.err( "File not present. Check path.\n" )
                         sys.exit( 1 )
                         
         if Str_CacheDir is not None:

-- 
Offline APT Package Manager



More information about the Apt-offline-devel mailing list