Skip to content

Commit

Permalink
Give string path for errfunc(). The needed argument
Browse files Browse the repository at this point in the history
  • Loading branch information
rickysarraf committed Nov 11, 2015
1 parent 4f6d64e commit 8cc8a61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apt_offline_core/AptOfflineCoreLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ def __init__( self, width, lock, total_items ):
Str_DownloadDir = os.path.abspath(tempdir)
else:
log.err( "%s is not writable\n" % (tempdir) )
errfunc ( 1, '')
errfunc ( 1, '', tempdir)
else:
if os.access( Str_DownloadDir, os.W_OK ) is True:
Str_DownloadDir = os.path.abspath( Str_DownloadDir )
Expand All @@ -853,7 +853,7 @@ def __init__( self, width, lock, total_items ):
Str_DownloadDir = os.path.abspath( Str_DownloadDir )
except:
log.err( "I couldn't create directory %s\n" % (Str_DownloadDir) )
errfunc( 1, '' )
errfunc( 1, '' , Str_DownloadDir)

if Str_BundleFile is not None:
Str_BundleFile = os.path.abspath(Str_BundleFile)
Expand Down Expand Up @@ -891,7 +891,7 @@ def __init__( self, width, lock, total_items ):
raw_data_list = open( Str_GetArg, 'r' ).readlines()
except IOError, ( errno, strerror ):
log.err( "%s %s\n" % ( errno, strerror ) )
errfunc( errno, '' )
errfunc( errno, '', Str_GetArg)

FetchData['Item'] = []
for item in raw_data_list:
Expand Down

0 comments on commit 8cc8a61

Please sign in to comment.