示例#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))
示例#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()
示例#3
0
文件: cdnsync.py 项目: m47ik/uyuni
 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()
示例#4
0
 def clear_cache():
     # Clear packages outside channels from DB and disk
     contentRemove.delete_outside_channels(None)
示例#5
0
 def clear_cache():
     # Clear packages outside channels from DB and disk
     contentRemove.delete_outside_channels(None)