[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-661-g680bfc9

Holger Levsen holger at layer-acht.org
Mon Jun 4 13:10:11 UTC 2012


The following commit has been merged in the develop branch:
commit 7f77775f27311225b92567d8e8b488a48e18029c
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Jun 4 15:06:00 2012 +0200

    piuparts-report takes no arguments.

diff --git a/TODO b/TODO
index b29596a..be9f228 100644
--- a/TODO
+++ b/TODO
@@ -6,10 +6,6 @@ higher than wishlist!
 
 for 0.45:
 
-- piuparts-report.py: fix those FIXMEs in main()
-
-- remove the "bugged" directory-status tracking altogether.  also remove "fixed".
-
 - create piuparts-master and piuparts-slave packages.
 
 - mv piatti.git piuparts.git/doc/examples  and include it into a new
@@ -21,6 +17,8 @@ for 0.45:
 
 for 0.46:
 
+- piuparts-report.py: fix another FIXME in main()
+
 - sometimes a chroot doesn't get removed on piatti - find out
   why and fix it.
 
diff --git a/piuparts-report.py b/piuparts-report.py
index cc53de8..af0524f 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -1164,13 +1164,10 @@ class Section:
 def main():
     setup_logging(logging.DEBUG, None)
 
-    # For supporting multiple architectures and suites, we take a command-line
-    # argument referring to a section in configuration file.  
-    # If no argument is given, the "global" section is assumed.
     section_names = []
     if len(sys.argv) > 1:
-        section = sys.argv[1]
-        # FIXME: does this work without settings master_directory and output_directory?
+        print 'piuparts-report takes no command line parameters.'
+        sys.exit(1)
     else:
         global_config = Config(section="global")
         global_config.read(CONFIG_FILE)

-- 
piuparts git repository



More information about the Piuparts-commits mailing list