fix the -c/--config argument; adapt to the debian folder possibly being a symlink
authorRalf Jung <post@ralfj.de>
Sun, 27 Oct 2013 20:41:29 +0000 (21:41 +0100)
committerRalf Jung <post@ralfj.de>
Sun, 27 Oct 2013 20:41:29 +0000 (21:41 +0100)
build_system.py
mass_build.py

index 9dceb7df7e689e7782a69ef3fa9462f2ff5e953e..1697dc63813d326b9855a2a7a41dc98c3f5d1909 100644 (file)
@@ -110,8 +110,7 @@ try:
                                        autoDebuildConfig[option] = self.config[option]
                        # create Debian files
                        os.chdir(self.sourceFolder)
                                        autoDebuildConfig[option] = self.config[option]
                        # create Debian files
                        os.chdir(self.sourceFolder)
-                       if os.path.isdir('debian'): # clean previous build attempts
-                               shutil.rmtree('debian')
+                       auto_debuild.deleteDebianFolder()
                        files = auto_debuild.createDebianFiles(autoDebuildConfig)
                        # build package(s)
                        auto_debuild.buildDebianPackage(autoDebuildConfig)
                        files = auto_debuild.createDebianFiles(autoDebuildConfig)
                        # build package(s)
                        auto_debuild.buildDebianPackage(autoDebuildConfig)
index e327b7ee2e91c23ea86b6226f949813de281c5ae..b5d581702386aaee54d751b56535e872ec821e8f 100755 (executable)
@@ -60,7 +60,7 @@ class Project:
 
 # read command-line arguments
 parser = argparse.ArgumentParser(description='Update and build a bunch of stuff')
 
 # read command-line arguments
 parser = argparse.ArgumentParser(description='Update and build a bunch of stuff')
-parser.add_argument("-c--config",
+parser.add_argument("-c", "--config",
                     dest="config", default="mass-build.conf",
                     help="mass-build config file")
 parser.add_argument("--reconfigure",
                     dest="config", default="mass-build.conf",
                     help="mass-build config file")
 parser.add_argument("--reconfigure",