backend/satellite_tools/reposync.py | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
New commits:
commit 00265ecc8795780e511234ac28819c0c7e708ce0
Author: Justin Sherrill <jsherril(a)redhat.com>
Date: Wed Aug 26 13:41:42 2009 -0400
changing behavior of reposync to immediately associate packages that already exist
instead of waiting till the end
diff --git a/backend/satellite_tools/reposync.py b/backend/satellite_tools/reposync.py
index ecdf097..99b7f07 100644
--- a/backend/satellite_tools/reposync.py
+++ b/backend/satellite_tools/reposync.py
@@ -141,7 +141,7 @@ class RepoSync:
self.upload_package(pack, path, md5)
self.associate_package(pack, md5)
else:
- to_link.append(pack)
+ self.associate_package(pack, md5) #package is already on the
satellite, lets just associate
if self.url.find("file://") < 0:
os.remove(path)
@@ -152,16 +152,6 @@ class RepoSync:
if self.fail:
raise
continue
- for pack in to_link:
- try:
- self.associate_package(pack, md5)
- except KeyboardInterrupt:
- raise
- except:
- self.error_msg(fetchTraceback())
- if self.fail:
- raise
- continue
def upload_package(self, package, path, md5):
temp_file = open(path, 'rb')
Show replies by date