diff --git a/libraries/activatorTools.py b/libraries/activatorTools.py index 7f30ee3aa..09fef5b8a 100644 --- a/libraries/activatorTools.py +++ b/libraries/activatorTools.py @@ -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']) diff --git a/libraries/entropyConstants.py b/libraries/entropyConstants.py index 25c4edf64..5672439be 100644 --- a/libraries/entropyConstants.py +++ b/libraries/entropyConstants.py @@ -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"