backend/satellite_tools/updatePackages.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
New commits: commit f67b418c62184fc755670e98b0b7657e828d41a0 Author: Jan Pazdziora jpazdziora@redhat.com Date: Wed Sep 16 16:19:14 2009 +0200
523393 - we are not able to parse the epoch out from filename, need to fetch it from database.
diff --git a/backend/satellite_tools/updatePackages.py b/backend/satellite_tools/updatePackages.py index daa5d37..6ba5492 100644 --- a/backend/satellite_tools/updatePackages.py +++ b/backend/satellite_tools/updatePackages.py @@ -104,9 +104,10 @@ def get_new_pkg_path(nvrea, org_id, prepend="", omit_epoch=None,
_get_path_query = """ - select md5sum, path - from rhnPackage - where path not like '%'||MD5SUM||'%' + select rhnPackage.md5sum, rhnPackage.path, rhnPackageEvr.epoch + from rhnPackage, rhnPackageEvr + where rhnPackage.path not like '%'||rhnPackage.MD5SUM||'%' + and rhnPackage.evr_id = rhnPackageEvr.id """
_update_pkg_path_query = """ @@ -143,6 +144,8 @@ def process_package_data(): org_id = old_path_nvrea[1] try: nvrea = parseRPMFilename(old_path_nvrea[-1]) + if nvrea[3] in [ None, '']: + nvrea[3] = path['epoch'] except: # probably not qan rpm skip if debug:
spacewalk-commits@lists.fedorahosted.org