aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp
Commit message (Collapse)AuthorAge
* Unify doc strings a bitGuido Günther2014-08-23
| | | | since they now show up with --list-cmds
* Allow to list all available commandsGuido Günther2014-08-23
|
* gbp: add --version optionGuido Günther2014-08-23
| | | | Closes: #758909
* Improve error messages on formatting errorsGuido Günther2014-08-19
| | | | | Make it easier for the user to detect misformated replacement strings in config files and command line options.
* buildpackage: Make debian-tag message configurableKamal Mostafa2014-08-19
| | | | | | | | | | | New config option --git-debian-tag-msg allows for the specification of the message format string for signed debian-tags. When left unset, the default debian-tag-msg format is still: %(pkg)s Debian release %(version)s Signed-off-by: Kamal Mostafa <kamal@whence.com>
* dch: Only modify the mainttrailer when --git-author is in useBla Fasel2014-08-11
|
* Use better variable nameBla Fasel2014-08-11
| | | | | | | It's a boolean indicating wether we fetch the author information from git not the author information itself. Git-Dch: Ignore
* Brown paper bag, pleaseBla Fasel2014-08-11
| | | | Gbp-Dch: Ignore
* Make sure we fixup the changelog trailer with newer devscriptsGuido Günther2014-08-11
| | | | | | | We don't change any mainttrailer options if already given. Thanks: James McCoy for the detailed explanation Closes: #740566
* linkeList: turn the bug printouts to debug levelGuido Günther2014-07-28
| | | | We don't take any action anyway so no need to confuse users.
* import-srpm: add 'vendor' config optionMarkus Lehtonen2014-07-24
| | | | | | | | | Intended to represent the distribution vendor (e.g. 'Debian'). Currently, this can be used in tag format strings. NOTE: the vendor name is converted to lowercase when used in tag names. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Introduce git-import-srpm toolMarkus Lehtonen2014-07-24
| | | | | | | | Initial version of the git-import-srpm: a tool for importing source rpms. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
* Add gbp specific tempfile moduleMarkus Lehtonen2014-07-24
| | | | | | | | Minimal initial implementation that only adds tempdir parent directory creation. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Olev Kartau <olev.kartau@intel.com>
* Introduce rpm helpersMarkus Lehtonen2014-07-24
| | | | | | | | | | | Implements a new gbp.rpm module that contains functionality for e.g. parsing and editing spec files, reading src.rpm files rpm-specific packaging policy etc. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com> Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com> Signed-off-by: Huang Hao <hao.h.huang@intel.com>
* Make pychecker happyGuido Günther2014-07-24
| | | | We don't use the class variable anywhere
* UpstreamSource: move version guessing logic to PkgPolicyMarkus Lehtonen2014-07-24
| | | | | | | | | | | | | PkgPolicy is more logical context, for example if guessing version from a plain filename and not a real file. Also, changes guess_version() to always return a tuple to simplify checking its return value. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Conflicts: gbp/pkg/__init__.py
* Change UpstreamSource to have PkgPolicyMarkus Lehtonen2014-07-24
| | | | | | | | | | 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>
* UpstreamSource.guess_version: don't check for directoriesMarkus Lehtonen2014-07-24
| | | | | | | | Directories are not recognized anyway, if guess_version() is called for non-existent sources. And, parse_archive_filename() works fine for directory names, too. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* UpstreamSource/guess_version: detect more compression formatsMarkus Lehtonen2014-07-24
| | | | | | | By utilizing the parse_archive_filename() function that detects e.g. "alias suffixes" such as 'tgz'. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Fix typosGuido Günther2014-07-24
|
* Move get_compression() out of pkg.PkgPolicy classMarkus Lehtonen2014-07-24
| | | | | | | | | | | | | Renames the function to parse_archive_filename() and changes it's return values. Filename parsing is merely generic functionality, not tied to any packaging policy. The function now returns the base name of the file (that is, filename without, archive and compression extensions), archive format and compression method. Adds supported archive formats 'tar' and 'zip' and file extension aliases, e.g. 'tgz'. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* buildpackage: Also print tag name when tagging the Debian releaseGuido Günther2014-06-14
| | | | Based on a patch by Kamal Mostafa
* Revert "Determine build_dir upfront"Guido Günther2014-05-24
| | | | This reverts commit b2549fac19f2d666552291a4fcf2020ca0570834.
* Improve error reporting on hooksGuido Günther2014-05-22
| | | | Make it obvious that a hook failed and not a gbp internal function
* Improve error reporting on failed commandsGuido Günther2014-05-22
| | | | | | | Make it more clear if the command exited with non zero exit status. Also don't report the command line twice. Closes: #748248
* Determine build_dir upfrontGuido Günther2014-05-22
| | | | so it's available to all hooks
* pq: Try harder to cleanup after a failed patchGuido Günther2014-05-19
| | | | | | | | | | | | | | | | | If we fail to apply the patch the tree is left in a dirty state so reset to the last head. This avoids irritating errors like: gbp:error: Failed to apply 'debian/patches/poison+remember_trash': Failed to commit tree: fatal: invalid date format: 1998/03/21 following files would be overwritten by checkout: doc/hosts.nntp.5 innd/art.c innd/innd.h innd/rc.c Please, commit your changes or stash them before you can switch branches. Aborting Thanks: Marco d'Itri for the repo to debug this
* pq: Print proper error message if we fail to apply the treeGuido Günther2014-05-19
| | | | | | | | | | e.g. instead of gbp:error: Failed to apply 'debian/patches/poison+remember_trash' we now have gbp:error: Failed to apply 'debian/patches/poison+remember_trash': Failed to commit tree: fatal: invalid date format: 1998/03/21
* Fix comitter vs committer typosGuido Günther2014-05-16
| | | | | Thanks: Sandro Tosi Closes: #748339
* Handle version format errors more gracefullyGuido Günther2014-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | So far if a package claimed to be non native but the version number didn't contain a '-' we failed like: Traceback (most recent call last): File "/usr/bin/gbp", line 9, in <module> load_entry_point('gbp==0.6.13', 'console_scripts', 'gbp')() File "/usr/lib/python2.7/dist-packages/gbp/scripts/supercommand.py", line 82, in supercommand return module.main(args) File "/usr/lib/python2.7/dist-packages/gbp/scripts/buildpackage.py", line 541, in main output_dir) File "/usr/lib/python2.7/dist-packages/gbp/scripts/buildpackage.py", line 96, in prepare_upstream_tarball upstream_tree = git_archive_build_orig(repo, cp, output_dir, options) File "/usr/lib/python2.7/dist-packages/gbp/scripts/buildpackage.py", line 270, in git_archive_build_orig upstream_tree = get_upstream_tree(repo, cp, options) File "/usr/lib/python2.7/dist-packages/gbp/scripts/buildpackage.py", line 245, in get_upstream_tree cp['Upstream-Version']) File "/usr/lib/python2.7/dist-packages/gbp/deb/git.py", line 107, in version_to_tag return format % dict(version=DebianGitRepository._sanitize_version(version)) File "/usr/lib/python2.7/dist-packages/gbp/deb/git.py", line 122, in _sanitize_version return version.replace('~', '_').replace(':', '%') It shouldn't be like that.
* Slightly improve usage outputGuido Günther2014-04-04
|
* config: add decorator to add_option_* functionsGuido Günther2014-04-03
| | | | | This allows us to build an internal list of valid options and print these.
* Import command not moduleGuido Günther2014-04-03
| | | | This matches the function name
* Revert "GitRepository/add_remote_repo: fix the 'tags' argument"Markus Lehtonen2014-04-02
| | | | | | | | | Which caused an unwanted behavior of not fetching refs/heads at all -- only tags were fetched. This reverts commit 5dd598fb8f2a9109189fad6cf631811f12ce2130 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Add minimal 'config' commandGuido Günther2014-04-01
| | | | | | This only allows to print single config values so far. Closes: #733470
* Test option parser fallbacks more thoroughlyGuido Günther2014-04-01
| | | | | | revealing another bug where we overwrote parsed values with defaults Closes: #733759
* Use a much simpler version to fix the command name in --helpGuido Günther2014-03-29
| | | | | | mostly reverting e1780f0. Closes: #742907
* Fix command outputGuido Günther2014-03-27
| | | | | | | | | | | | | The first line lacked the subcommand like: $ gbp pull --help Usage: gbp [options] - safely update a repository from remote instead of $ gbp pull --help Usage: gbp pull [options] - safely update a repository from remote ^^^^
* pq: minor log message typo fixMarkus Lehtonen2014-03-27
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* GitRepository/add_remote_repo: fix the 'tags' argumentMarkus Lehtonen2014-03-27
| | | | | | | Explicitly use --tags in git arguments - otherwise tags might not be fetched. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* GitRepository/get_commit_info: correctly handle file renames/copiesMarkus Lehtonen2014-03-27
| | | | | | | Use the '--no-renames' git command line option in order to prevent two filenames per entry. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* import_dsc: Create missing debian branch with --create-missing-branchesGuido Günther2014-02-23
| | | | Closes: #739888
* config: Don't pull in config defaults twiceGuido Günther2014-02-19
| | | | | | This would otherwise overwrite values set in the legacy config sections. Closes: #733759
* config: Don't pull in config defaults twiceGuido Günther2014-02-18
| | | | | | This would otherwise overwrite values set in the legacy config sections. Closes: #733759
* import_orig: test error paths of find_sourceGuido Günther2014-01-07
|
* Change the default of cleaner to /bin/trueGuido Günther2014-01-05
| | | | | | | | | Running a clean command within version control by default nowadays causes more trouble than it helps. It's unnecessary with pbuilder/cowbuilder/sbuild and with export-dir. So change the default from 'debuild clean' to a noop ('/bin/true'). Closes: #670624
* Make parsing config file sections symmetricGuido Günther2014-01-05
| | | | | | | | | | | Always read the legacy command's config file section prior to the subcommand's config file section. Until now 'gbp <subcommand>' would read '[subcommand]' as well as '[gbp-<subcommand>]' sections while 'gbp-<subcommand>' would only read '[gbp-<subcommand>]' sections. Closes: #733759
* Avoid backtrace on config file parse errorsGuido Günther2014-01-05
| | | | | | "gbp buildpackage" did this already but others didn't Closes: #733759
* Determine changes file name based on dpkg-buildpackage optionsGuido Günther2013-12-20
| | | | Closes: #732678
* log: add error and warning aliasesGuido Günther2013-11-06
| | | | | | since I tend to use them instead of err and warn. Closes: #728896