summaryrefslogtreecommitdiff
path: root/gbp/deb
AgeCommit message (Collapse)Author
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
2012-02-07UpstreamSource: turn is_* vars and properties into methodsGuido Günther
since this is more consistent with the other is_* methods in other classes.
2012-01-30PristineTar: fix match when not passing in a compression typeGuido Günther
2012-01-30PristineTar: add missing import for debug outputGuido Günther
2012-01-30PristineTar: make sure we set the current working directoryGuido Günther
otherwise this will fail when invoked from outside the git tree
2012-01-22PristineTar: move to separate moduleGuido Günther
and make it accessible from GitRepository to group checkout/checkin/lookup.
2012-01-22deb.changelog: add name propertyGuido Günther
2012-01-22deb: Add UpstreamSource.build_tarball_nameGuido Günther
to build a tarball name from a (package, version, compression) triplet optionally adding a directory.
2012-01-21DebianGitRepository: Add parameter and return types to find_version()Guido Günther
2012-01-21deb: make find_version() return sha1 of a commitMarkus Lehtonen
Change find_version() so that it always returns sha1 of a commit object. That is, annotated tags are dereferenced to a commit object. Previously find_commit returned the sha1 of the tag object.