whoops
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@876 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
@@ -168,6 +168,10 @@ def sync(options, justTidy = False):
|
||||
activatorLog.log(ETP_LOGPRI_INFO,ETP_LOGLEVEL_VERBOSE,"sync: removing (local) file "+file)
|
||||
print_info(green(" * ")+red("Package file: ")+bold(file)+red(" removed successfully from ")+bold(etpConst['packagesbindir']+"/"+mybranch))
|
||||
os.remove(etpConst['packagesbindir']+"/"+mybranch+"/"+file)
|
||||
try:
|
||||
os.remove(etpConst['packagesbindir']+"/"+mybranch+"/"+file+etpConst['packagesexpirationfileext'])
|
||||
except OSError:
|
||||
pass
|
||||
# checksum
|
||||
if os.path.isfile(etpConst['packagesbindir']+"/"+mybranch+"/"+file+etpConst['packageshashfileext']):
|
||||
activatorLog.log(ETP_LOGPRI_INFO,ETP_LOGLEVEL_VERBOSE,"sync: removing (local) file "+file+etpConst['packageshashfileext'])
|
||||
|
||||
@@ -475,7 +475,7 @@ dbCOUNTER = "COUNTER"
|
||||
|
||||
def initConfig_entropyConstants(rootdir):
|
||||
|
||||
if not os.path.isdir(rootdir):
|
||||
if rootdir and not os.path.isdir(rootdir):
|
||||
raise exceptionTools.FileNotFound("FileNotFound: not a valid chroot.")
|
||||
|
||||
ETP_DIR = rootdir+"/var/lib/entropy"
|
||||
|
||||
Reference in New Issue
Block a user