Hello,

Andy Speagle noted on spacewalk-list that Solaris up2date had stopped working recently. A quick email exchange found the problem, stemming from a code re-organization (git commit b4e97f21).

Patch attached.

Thanks,

Josh
From 391ae5f863bf4626140729416c95c1adc2ab527e Mon Sep 17 00:00:00 2001
From: Joshua Roys <[email protected]>
Date: Mon, 14 Dec 2009 16:17:30 -0500
Subject: [PATCH] Fix typo preventing Solaris up2date from working

---
 backend/server/rhnServer/server_solarispatches.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/backend/server/rhnServer/server_solarispatches.py 
b/backend/server/rhnServer/server_solarispatches.py
index 90aa112..6edd351 100644
--- a/backend/server/rhnServer/server_solarispatches.py
+++ b/backend/server/rhnServer/server_solarispatches.py
@@ -27,7 +27,7 @@ def get_package_id(pkg):
     """Lookup a package id from rhnPackage in the database,
     Return the id or return None if the package is not found"""
 
-    p = dbPackage(entry)
+    p = dbPackage(pkg)
 
     query = """SELECT id FROM rhnPackage
                WHERE name_id=LOOKUP_PACKAGE_NAME(:name)
-- 
1.6.5.2

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to