-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
<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>
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',
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:"
@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'),
@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: