[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/ricci/modules/rpm PackageHandler.cpp



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	kupcevic 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

--- conga/ricci/modules/rpm/PackageHandler.cpp	2006/10/06 03:10:13	1.7
+++ conga/ricci/modules/rpm/PackageHandler.cpp	2006/10/11 22:33:43	1.8
@@ -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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]