git-buildpackage: add an option (--git-cleaner) that allows to specify a different... debian/0.2.19
authorGuido Guenther <agx@sigxcpu.org>
Thu, 21 Dec 2006 14:21:43 +0000 (15:21 +0100)
committerGuido Guenther <agx@bogon.sigxcpu.org>
Thu, 21 Dec 2006 14:21:43 +0000 (15:21 +0100)
debian/changelog
docs/manpages/git-buildpackage.sgml
git-buildpackage
git_buildpackage/config.py

index 1ead3d9bc059ab8a2e453200b4b171edb63ace66..280f333ff4fee1544885d4f7725930c808119abf 100644 (file)
@@ -1,11 +1,12 @@
-git-buildpackage (0.2.19) experimental; urgency=low
+git-buildpackage (0.2.19) unstable; urgency=low
 
-  * UNRELEASED
+  * git-buildpackage: add an option (--git-cleaner) that allows to specify
+    a different clean command (Closes: #403987)
   * depend on a git-core that has git-archive
   * s/keyid/GPG keyid/
   * minor fixes all over the place
 
- -- Guido Guenther <agx@sigxcpu.org>  Wed, 13 Dec 2006 22:39:42 +0100
+ -- Guido Guenther <agx@sigxcpu.org>  Thu, 21 Dec 2006 15:18:40 +0100
 
 git-buildpackage (0.2.18) experimental; urgency=low
 
index bf473af3d4ffc89c545e911402ffab2a5d2d352e..70c1dfdaab3bcbc702c5261cee640e79d8b3ff57 100644 (file)
@@ -30,6 +30,7 @@
       <arg><option>--upstream-branch=<replaceable>branch_name</replaceable></option></arg>
       <arg><option>--debian-branch=<replaceable>branch_name</replaceable></option></arg>
       <arg><option>--git-builder=<replaceable>BUILD_CMD</replaceable></option></arg>
+      <arg><option>--git-cleaner=<replaceable>CLEAN_CMD</replaceable></option></arg>
       <arg><option>--git-sign-tags</option></arg>
       <arg><option>--git-keyid</option></arg>
     </cmdsynopsis>
           <para>Use <replaceable>BUILD_CMD</replaceable> instead of <command>debuild</command></para>
         </listitem>
       </varlistentry>
+      <varlistentry>
+        <term><option>--git-cleaner=<replaceable>CLEAN_CMD</replaceable></option></term>
+        <listitem>
+          <para>Use <replaceable>CLEAN_CMD</replaceable> instead of <command>debuild clean</command></para>
+        </listitem>
+      </varlistentry>
       <varlistentry>
         <term><option>--git-verbose</option>
         </term>
index 95a9491c924eceee509f9f3bad2d8d6b11f0b806..95d7216d125c4d61daf7e4550c916d8148398e1c 100755 (executable)
@@ -63,6 +63,8 @@ def main(argv):
                       help="verbose command execution")
     parser.add_config_file_option(option_name="builder", dest="build_cmd",
                       help="command to build the package e.g. default is '%(builder)s'")
+    parser.add_config_file_option(option_name="cleaner", dest="clean_cmd",
+                      help="command to build the package e.g. default is '%(cleaner)s'")
     parser.add_config_file_option(option_name="upstream-branch", dest="upstream_branch",
                       help="upstream branch, default is '%(upstream-branch)s'")
     parser.add_config_file_option(option_name="debian-branch", dest='debian_branch',
@@ -82,7 +84,7 @@ def main(argv):
 
     try:
         if not options.ignore_new:
-            Command(options.build_cmd, ['clean'])()
+            Command(options.clean_cmd)()
             (ret, out) = is_repository_clean('.')
             if not ret:
                 print >>sys.stderr, "You have uncommitted changes in your source tree:"
index e1fde158a953dc1a275115d0b3e3e83ef2512434..cff425538daa219872a881051b3d1aa1680d1082 100644 (file)
@@ -23,11 +23,12 @@ class GBPOptionParser(OptionParser):
     @type config_files: list
     """
     defaults={ 'builder'         : 'debuild',
+               'cleaner'            : 'debuild clean',
                'debian-branch'   : 'master',
                'upstream-branch' : 'upstream',
                'upstream-branch' : 'upstream',
-              'sign-tags'       : '',          # empty means False
-              'keyid'           : '',
+               'sign-tags'          : '',              # empty means False
+               'keyid'              : '',
              }
     config_files=['/etc/git-buildpackage/gbp.conf',
                   os.path.expanduser('~/.gbp.conf'),
@@ -59,6 +60,7 @@ class GBPOptionParser(OptionParser):
         @type help: string
         """
         OptionParser.add_option(self,"--%s%s" % (self.prefix, option_name), dest=dest,
-                                         default=self.config[option_name], 
-                                        help=help % self.config, **kwargs)
+                                default=self.config[option_name], 
+                                help=help % self.config, **kwargs)
 
+# vim:et:ts=4:sw=4: