summaryrefslogtreecommitdiff
path: root/gbp/deb
AgeCommit message (Collapse)Author
2015-03-20Fix paragraph indentation for epydocGuido Günther
2015-03-18Add %(hversion)s to version_to_tag to support some upstreamsDaniel Kahn Gillmor
enigmail upstream uses tags named enigmail-1-8 for 1.8. Other upstreams have used similar conventions, likely as holdovers from CVS (e.g. gnupg 1.4.2 was tagged with V1-4-2). This patch helps packagers work with these upstreams. Closes: #780679 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2015-02-20Don't output additional newlinesGuido Günther
introduced by 0a4725c045a5a55592dafd41c6ef6f9bab4791cd
2015-02-20Don't use basestringGuido Günther
to work toward Python3 support
2015-02-20Use email.utils instead of email.UtilsGuido Günther
works with python 2 and 3
2015-02-20Don't use dict.has_key()Guido Günther
Not existent in Python3
2015-02-20Don't use print as a statementGuido Günther
via 2to3-3.4 -w -f print . to work towards python3 support Gbp-Dch: Ignore
2015-02-20Ignore return types of write and shutil.copyGuido Günther
Python3 does not return None anymore
2015-02-17git-dch --git-author: separate author and emailDmitrij Tejblum
Allow --git-author to work if either author or email is not specified in the git config, taking the other config option into account.
2015-01-22Make Debian and Git spelling consistentGuido Günther
2014-08-19Improve error messages on formatting errorsGuido Günther
Make it easier for the user to detect misformated replacement strings in config files and command line options.
2014-07-24Change UpstreamSource to have PkgPolicyMarkus Lehtonen
The UpstreamSource class now gets a PkgPolicy in it's initialization. Also, introduces new DebiaUpstreamSource class which is taken in use in the scripts. The PkgPolicy is not yet used for anything in UpstreamSource. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-05-16Fix comitter vs committer typosGuido Günther
Thanks: Sandro Tosi Closes: #748339
2013-08-28Use open() instead of file()Guido Günther
since the later doesn't exist in python3
2013-08-22Minor docstring updatesGuido Günther
2013-04-29Silence dpkg --compare-versionsGuido Günther
and add the error detail to the exception message. This silences the testsuite and makes sure we have error message and exception output in sync.
2013-04-29Make parse_dsc a classmethod of DscFileGuido Günther
so we have the object creation close to the object itself.
2013-04-29ChangeLog: Remove is_nativeGuido Günther
to avoid accidental usage. Use DebianSource.is_native instead.
2013-04-29dch: Use DebianSource.is_nativeGuido Günther
instead of ChangeLog.is_native since the former used debian/source/format in favor of debian/changelog.
2013-04-26DebianSource: fix is_native()Markus Lehtonen
Determine from changelog if debian/source/format does not provide any type (1.0 format). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-25DebianSource: raise DebianSourceError if reading changelog failsMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-13Add gbp.git.source.Source.sourcepkgGuido Günther
to easily fetch the source package name Git-Dch: Ignore
2013-04-13Honor debian/source/formatGuido Günther
when checking if a package is a native package Closes: #669267
2013-04-13Introduce Source classGuido Günther
so we don't have to expose all the details of Debian's different files and conventions.
2013-04-13Use _git_inout for git.showGuido Günther
so we don't spew the error message on stdout for nonexistent objects
2013-03-29Move DscFile to separate moduleGuido Günther
2013-03-29Move DebianPkgPolicy to separate moduleGuido Günther
2013-03-29Move debian/changelog manipulation to gbp.deb.changelog.ChangeLog.Daniel Dehennin
spawn_dch switch gbp.command.wrappers.Command. * gbp/deb/changelog.py (ChangeLog.spawn_dch): static method adapted from gbp.scripts.dch and converted to gbp.command_wrappers.Command. (add_entry): New method adapted from gbp.scripts.dch.add_changelog_entry. (add_section): New method adapted from gbp.scripts.dch.add_changelog_entry. Remove DebianGitRepository and options, this has nothing to do with changelog management. * tests/test_Changelog.py: Test new methods. * gbp/scripts/dch.py: Remove useless functions: system(), spawn_dch(), add_changelog_section() and add_changelog_entry(). Update calls accordingly. (fixup_trailer): Use spawn_dch() method of ChangeLog class. (process_options): dch_options became a list. (main): Use add_section() and add_entry() methods of ChangeLog object. Take care of upstream version since ChangeLog.add_section() does not manage it anymore. Update exception handling, ChangeLog.spawn_dch() can raise "CommandExecFailed" exception. Closes: #672954
2013-03-27Fix docstringGuido Günther
2013-03-27Split out building a debian version from an upstream commitGuido Günther
based on a patch by Daniel Dehennin Needed for #672954, #646684, #669171
2013-03-22Allow for upper case characters in the upstream versionGuido Günther
Closes: #703694
2013-03-22Remove unused importsGuido Günther
2012-08-26Add debian/source/format parserGuido Günther
2012-08-03Improve error reporting from uscanGuido Günther
by parsing out the warnings and error fields from the dehs output.
2012-08-03Move uscan to separate classGuido Günther
2012-07-02Make exception syntax consistentGuido Günther
2012-06-30PristineTar: move Debian-specific stuff to DebianPristineTarMarkus Lehtonen
Continuation to the PristineTar refactoring, makes the "common" PristineTar independent of DebianPkgPolicy. This commit moves the Debian-specific has_commit() and checkout() methods to DebianPristineTar class and replaces them with more generic functions in the base class. Also, drops the Debian-specific get_commit() method completely, as it was not used outside the PristineTar class itself. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-06-17deb.git: Fixed typo in method nameEd Bartosh
the double underscore prefix was dropped ages ago. Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2012-05-25Refactor deb helpers: move PristineTar classGuido Günther
Based on a patch by Markus Lehtonen This refactor is preparation to the upcoming rpm support.
2012-05-20Provide minimalist debian/control objectDaniel Dehennin
Closes: #673473 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-05-20gbp.deb.ChangeLog: Add filename propertyGuido Günther
2012-05-20gbp.deb.changelog: Split parsing into a separate functionGuido Günther
this will allow us to reparse the changelog after manipulation with dch.
2012-05-15Add gbp.deb.ChangeLogSectionGuido Günther
to parse package and version out of a changelog section
2012-05-01Refactor deb helpers: move UpstreamSource classMarkus Lehtonen
to pkg base module. This refactor is preparation to the upcoming rpm support.
2012-05-01Refactor deb helpers: move build_tarball_name()Markus Lehtonen
from UpstreamSource class to DebianPkgPolicy.
2012-05-01Refactor deb helpers: introduce PkgPolicy classMarkus Lehtonen
Create a new 'pkg' basemodule, intended to be re-used by the upcoming rpm package helpers. Move some deb functionality to a new pkg.PkgPolicy class, to be used as a base for different package types. Introduces Deb-specific deb.DebianPkgPolicy.
2012-04-12Make the upstream version check match policyGuido Günther
Closes: #668554
2012-03-15deb.changelog: allow to extract author and dateGuido Günther
2012-02-07UpstreamSource: tgz is suitable as upstream tarball.Guido Günther
2012-02-07UpstreamSource: clarify method descriptionsGuido Günther