From ad27085b67f6414bb6ba9903102bd1a5d2bf5dd4 Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Mon, 6 May 2013 14:20:38 +0200
Subject: [PATCH] bugfix, when an rpm -e (from /etc/planetlab/delete-rpm-list)
 fails

---
 NodeUpdate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NodeUpdate.py b/NodeUpdate.py
index afd0704..704f544 100644
--- a/NodeUpdate.py
+++ b/NodeUpdate.py
@@ -252,7 +252,7 @@ class NodeUpdate:
                     Message ("Successfully removed RPM %s"%rpm)
                     continue
                 else:
-                    Error( "Unable to delete RPM %s, continuing. rc=%d" % (rpm,rc ))
+                    Error( "Unable to delete RPM %s, continuing. rc=%d" % (rpm,uninstalled))
             
         else:
             Message( "No RPMs list file found." )
-- 
2.47.0