backend/satellite_tools/updatePackages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 013de18fe8c3b4de818140e06645096dabc4f071 Author: Jan Pazdziora jpazdziora@redhat.com Date: Fri Sep 18 15:56:15 2009 +0200
523393 - if the new path is longer than the old one, substr would return null, address those cases.
diff --git a/backend/satellite_tools/updatePackages.py b/backend/satellite_tools/updatePackages.py index fb7bd15..0a6cdf2 100644 --- a/backend/satellite_tools/updatePackages.py +++ b/backend/satellite_tools/updatePackages.py @@ -118,7 +118,7 @@ _get_path_query = """ and rhnPackage.evr_id = rhnPackageEvr.id and rhnPackage.package_arch_id = rhnPackageArch.id ) - where '/' || new_path <> substr(path, -length(new_path) - 1) + where '/' || new_path <> nvl(substr(path, -length(new_path) - 1), 'x') """
_update_pkg_path_query = """
spacewalk-commits@lists.fedorahosted.org