Skip to contentSkip to conversation

conga/ricci/modules/rpm PackageHandler.cpp

Cluster-devel [email protected] 1 participant 1 message Oct 11, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-10-11 22:33:43

Modified files:
ricci/modules/rpm: PackageHandler.cpp

Log message:
rpm module: don't upgrade packages

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/rpm/PackageHandler.cpp.diff?cvsroot=cluster&r1=1.7&r2=1.8

ricci/modules/rpm/PackageHandler.cpp +6 -4
@@ -152,12 +152,12 @@
 bool
 PackageInstaller::install(vector<String> rpms)
 {
-  if (!available())
-    return rpms.empty();
-  
   if (rpms.empty())
     return true;
   
+  //if (!available())
+  //  return rpms.empty();
+  
   if (RHEL4) {
     String out, err;
     int status;
@@ -213,6 +213,8 @@
       if (status)
 	return false;
     }
+    return true;
+    /*
     // update
     out = err = "";
     args.clear();
@@ -225,7 +227,7 @@
     if (utils::execute(YUM_PATH, args, out, err, status, false))
       throw command_not_found_error_msg(YUM_PATH);
     return !status;
-    
+    */
   } else 
     return false;
 }