summaryrefslogtreecommitdiff
path: root/gbp/scripts/buildpackage.py
AgeCommit message (Collapse)Author
2013-06-27Use has_keyGuido Günther
It's shorter and get's rid of the unused dummy variable.
2013-06-11buildpackage: use get_commit_info() instead of get_subject()Markus Lehtonen
Utilize the get_commit_info() method of GitRepository instead of the deprecated get_subject(). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-05-17git-buildpackage: Unbreak overlay modeGaudenz Steinlin
Signed-off-by: Guido Günther <agx@sigxcpu.org> Closes: #708636
2013-04-26Silence GitRepository.has_treeishGuido Günther
This also silences 10_test_get_upstream_tree
2013-04-26buildpackage: implement --[no-]hooks optionMarkus Lehtonen
For enabling/disabling all hooks. This option does not affect the builder command, though. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-25buildpackage: catch and handle DebianSourceError gracefullyMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-13Don't try access source before it's filledGuido Günther
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-03-29Include the name of the package being built in the debian tag messageDaniel Kahn Gillmor
Currently, the message in the debian tag is just: "Debian release %s" % cp.version This is a bad idea, because it means that the signed message itself contains no mention of the project that is being worked on. Since all git repositories are conceptually the same git repository (some just have commits that others don't have), a malicious attacker could inject tags from project A into the repository for project B and the original developer's signature on those tags would be intact. This is potentially a security problem. For example: if there are automated build systems that pull from a repo and verify signed tags made by a known developer (and that developer contributes to multiple projects), this conflation could be used to make those systems build packages from an entirely other project. The attached patch enforces the inclusion of the name of the package into the tag's message. Closes: #704018
2013-03-22Purging of the build dir should be configurable via a config fileGuido Günther
so introdice --git[-no]-purge which is consistent with the other boolean options and deprecate --git-dont-purge. Closes: #702200
2012-11-25New configuration option for setting the output color schemeMarkus Lehtonen
Adds a new command line and config file option 'color-scheme' for selecting the colors used in log output. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-08Remove unused importGuido Günther
2012-07-28GitRepository: raise GitRepositoryError on git errorsGuido Günther
Raise GitRepositoryError in cases where CommandExecFailed (from GitCommand) was previously silently passed forward. Heavily based on a patch by Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-02Make exception syntax consistentGuido Günther
2012-06-01git-buildpackage: allow to build packages from detached HEAD stateGuido Günther
with --git-ignore-branch. Closes: #661598
2012-06-01git-buildpackage overlay-mode: don't fail on files named like tarballGuido Günther
Instead of moving individual files around simply rename the directories. This is faster and independent of the tarballs content. Closes: #675412
2012-06-01git-buildpackage: add missing importGuido Günther
so move_old_export works again
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: 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-18Refactor git-buildpackage as preparation for rpm supportMarkus Lehtonen
Separate some functions of git-buildpackage into a basemodule, intended to be re-used by the upcoming rpm variant of the tool.
2012-02-13Refactor config.py as preparation for rpm support.Markus Lehtonen
Split GbpOptionParser in to a common base class and a Debian specific subclass, as a preparation for upcoming RPM support. This allows having different default values (and help texts) for common options between different package types, and, clearer separation of package type specific options. Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-01-22buildpackage: Add pristine-tar-commit optionGuido Günther
This option allows to auto commit a generated tarball to the pristine-tar branch to simplify building non-dfsg clean packages and to make it easier to track uptream git.
2012-01-22PristineTar: move to separate moduleGuido Günther
and make it accessible from GitRepository to group checkout/checkin/lookup.
2012-01-18Don't assume gzip compression of the orig tarballGuido Günther
2012-01-15deb: minor refactor of parameters of has_orig()Markus Lehtonen
2012-01-15deb: minor refactor of parameters of symlink_orig()Markus Lehtonen
2012-01-11buildpackage: Allow to pass pbuilder optionsGuido Günther
via commandline or gbp.conf
2012-01-10Allow to specify the upstream tree via --upstream-treeGuido Günther
without the indirection to --upstream-branch.
2011-12-26Add --[no-]-pbuilder-autoconfGuido Günther
to pass GIT_PBUILDER_AUTOCONF=no to git-pbuilder.
2011-12-16Move debian specific functions from GitRepository to DebianGitRepositoryGuido Günther
2011-11-30Parse the changelog of the exported tree instead of the working copyGuido Günther
when using --export. This reduces the number of options needed when using an export dir since the correct tarball is now being created without additional options. Closes: #564791
2011-11-28buildpackage.py: move changelog fetching into functionGuido Günther
2011-11-28Add ChangeLog classGuido Günther
making it easier to query versions. Add tests.
2011-11-23Fix typosGuido Günther
2011-11-22buildpackage: group functions needed for export-dir handlingGuido Günther
2011-11-22buildpackage: move export of source tree into separate functionGuido Günther
2011-11-22Support postexport hooksGuido Günther
Heavily based on a patch by Jan Čapek Closes: #640982
2011-11-22buildpackage: move tarball preparation into separate functionGuido Günther
2011-11-01Get rid of the symlinkGuido Günther
by moving the commands to gbp/scripts/