Beispiel #1
0
 def clear_cache():
     # Clear packages outside channels from DB and disk
     contentRemove.delete_outside_channels(None)
     if os.path.isdir(constants.PACKAGE_STAGE_DIRECTORY):
         log(0, "Cleaning package stage directory.")
         for pkg in os.listdir(constants.PACKAGE_STAGE_DIRECTORY):
             os.unlink(os.path.join(constants.PACKAGE_STAGE_DIRECTORY, pkg))
Beispiel #2
0
 def clear_cache(self):
     # Clear packages outside channels from DB and disk
     log(0, "Cleaning imported packages outside channels.")
     contentRemove.delete_outside_channels(None)
     if os.path.isdir(constants.PACKAGE_STAGE_DIRECTORY):
         log(0, "Cleaning package stage directory.")
         for pkg in os.listdir(constants.PACKAGE_STAGE_DIRECTORY):
             os.unlink(os.path.join(constants.PACKAGE_STAGE_DIRECTORY, pkg))
     log(0, "Cleaning orphaned CDN repositories in DB.")
     self.cdn_repository_manager.cleanup_orphaned_repos()
Beispiel #3
0
 def clear_cache(self):
     # Clear packages outside channels from DB and disk
     log(0, "Cleaning imported packages outside channels.")
     contentRemove.delete_outside_channels(None)
     if os.path.isdir(constants.PACKAGE_STAGE_DIRECTORY):
         log(0, "Cleaning package stage directory.")
         for pkg in os.listdir(constants.PACKAGE_STAGE_DIRECTORY):
             os.unlink(os.path.join(constants.PACKAGE_STAGE_DIRECTORY, pkg))
     log(0, "Cleaning orphaned CDN repositories in DB.")
     self.cdn_repository_manager.cleanup_orphaned_repos()
Beispiel #4
0
 def clear_cache():
     # Clear packages outside channels from DB and disk
     contentRemove.delete_outside_channels(None)
Beispiel #5
0
 def clear_cache():
     # Clear packages outside channels from DB and disk
     contentRemove.delete_outside_channels(None)