[Piuparts-commits] rev 56 - trunk

Ana Beatriz Guerrero López ana at alioth.debian.org
Tue Jul 10 19:28:59 UTC 2007


Author: ana
Date: 2007-07-10 19:28:59 +0000 (Tue, 10 Jul 2007)
New Revision: 56

Modified:
   trunk/piuparts.py
Log:
Fixing a couple of little bugs from the new options.


Modified: trunk/piuparts.py
===================================================================
--- trunk/piuparts.py	2007-07-10 17:49:30 UTC (rev 55)
+++ trunk/piuparts.py	2007-07-10 19:28:59 UTC (rev 56)
@@ -567,7 +567,7 @@
         if new:
             logging.debug("New installed files on system:\n" + file_list(new, file_owners))
         else:
-            logging.debug("The package did not install any file!\n" + file_list(new, file_owners))		    
+            logging.debug("The package did not install any new file.\n")		    
 
         if removed:
             logging.debug("The following files have disappeared:\n" +
@@ -576,6 +576,8 @@
         if modified:
             logging.debug("The following files have been modified:\n" +
                           file_list(new, file_owners))
+        else:
+            logging.debug("The package did not modify any file.\n")	
 
 
     def install_package_files(self, filenames):
@@ -693,8 +695,14 @@
 
     def install_packages_by_name(self, packages):
         if packages:
-            self.run(["apt-get", "-y", "install"] + packages)
-
+	    if settings.list_installed_files:
+                pre_info = self.save_meta_data()
+                self.run(["apt-get", "-y", "install"] + packages)
+                self.list_installed_files (pre_info, self.save_meta_data())
+            else:
+                self.run(["apt-get", "-y", "install"] + packages)
+	    
+	    
     def check_for_no_processes(self):
         """Check there are no processes running inside the chroot."""
         (status, output) = run(["lsof", "+D", self.name], ignore_errors=True)




More information about the Piuparts-commits mailing list