コード例 #1
0
ファイル: cdnsync.py プロジェクト: wraiden/spacewalk
 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
ファイル: cdnsync.py プロジェクト: jiridostal/spacewalk
 def clear_cache():
     # Clear packages outside channels from DB and disk
     contentRemove.delete_outside_channels(None)
コード例 #5
0
ファイル: cdnsync.py プロジェクト: borland667/spacewalk
 def clear_cache():
     # Clear packages outside channels from DB and disk
     contentRemove.delete_outside_channels(None)