summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-07-24Introduce git-buildpackage-rpmGuido Günther
Currently only including "gbp import-srpm"
2014-07-24import-srpm: add 'vendor' config optionMarkus Lehtonen
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>
2014-07-24Pass --no-pristine-tar to SRPM compnent testsGuido Günther
to avoid pristine-tar showing up in the matched branches
2014-07-24Introduce git-import-srpm toolMarkus Lehtonen
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>
2014-07-24Add gbp specific tempfile moduleMarkus Lehtonen
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>
2014-07-24Introduce rpm helpersMarkus Lehtonen
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>
2014-07-24Make pychecker happyGuido Günther
We don't use the class variable anywhere
2014-07-24UpstreamSource: move version guessing logic to PkgPolicyMarkus Lehtonen
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
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-07-24UpstreamSource.guess_version: don't check for directoriesMarkus Lehtonen
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>
2014-07-24UpstreamSource/guess_version: detect more compression formatsMarkus Lehtonen
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>
2014-07-24Fix typosGuido Günther
2014-07-24Move get_compression() out of pkg.PkgPolicy classMarkus Lehtonen
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>
2014-06-30docs: document common options in one placeMarkus Lehtonen
Move the documentation of command line options common to all tools into one file. This unifies the manpage documentation and should make its maintenance easier. Also, this change adds missing options to several manpages. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30docs: cosmetic reformat of git-dch manpage sgml sourceMarkus Lehtonen
Makes the sgml source more readable. Fix indentation, tab to space, wrap lines. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30docs: cosmetic reformat of pq manpage sgml sourceMarkus Lehtonen
Makes the sgml source more readable. Fix indentation, tab to space, wrap lines. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30docs: cosmetic reformat of import-dsc manpage sgml sourceMarkus Lehtonen
Makes the sgml source more readable. Fix indentation, tab to space, wrap lines. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30docs: cosmetic reformat of import-orig manpage sgml sourceMarkus Lehtonen
Makes the sgml source more readable. Fix indentation, tab to space, wrap lines. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30docs: change option argument names to uppercase in buildpackage manMarkus Lehtonen
For the sake of consistency. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30docs: cosmetic reformat of buildpackage manpage sgml sourceMarkus Lehtonen
In order to make the sgml source more readable. Fix indentation, tab to space, wrap lines. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-14buildpackage: Also print tag name when tagging the Debian releaseGuido Günther
Based on a patch by Kamal Mostafa
2014-06-05docs: more flexible version parsing in MakefileMarkus Lehtonen
Add dash to the list of valid version characters. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05docs: document the --customizations option of gbp dchMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05docs: document the --interactive option of gbp-import-origMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05docs: document the --git-[no-]submodules optionMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05docs: document the --color-scheme optionMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05docs: sgml syntax fix, add missing semicolonsMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05docs: reference buildpackage and pq in the gbp (supercommand) manpageMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05docs: hyperlink references to other manpagesMarkus Lehtonen
Change references to other gbp manpages to linked refs so that we get hyperlinks in the html manpages. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05docs: add some missing commas to manpagesMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-05-24Document changes and release 0.6.15Guido Günther
2014-05-24Revert "Determine build_dir upfront"Guido Günther
This reverts commit b2549fac19f2d666552291a4fcf2020ca0570834.
2014-05-22Document changes and release 0.6.14Guido Günther
2014-05-22Improve error reporting on hooksGuido Günther
Make it obvious that a hook failed and not a gbp internal function
2014-05-22Improve error reporting on failed commandsGuido Günther
Make it more clear if the command exited with non zero exit status. Also don't report the command line twice. Closes: #748248
2014-05-22Determine build_dir upfrontGuido Günther
so it's available to all hooks
2014-05-19pq: Try harder to cleanup after a failed patchGuido Günther
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
2014-05-19pq: Print proper error message if we fail to apply the treeGuido Günther
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
2014-05-19Documnt that the patches must apply without fuzzGuido Günther
2014-05-16Fix comitter vs committer typosGuido Günther
Thanks: Sandro Tosi Closes: #748339
2014-05-07Handle version format errors more gracefullyGuido Günther
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.
2014-05-02gbp pq: document --forceGuido Günther
2014-04-04Slightly improve usage outputGuido Günther
2014-04-03Document changes and release 0.6.13Guido Günther
2014-04-03config: add decorator to add_option_* functionsGuido Günther
This allows us to build an internal list of valid options and print these.
2014-04-03Import command not moduleGuido Günther
This matches the function name
2014-04-03docs: re-enable missing manpageMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-04-02Remove tests now covered by 18_test_ConfigGuido Günther
2014-04-02Revert "GitRepository/add_remote_repo: fix the 'tags' argument"Markus Lehtonen
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>
2014-04-01Add minimal 'config' commandGuido Günther
This only allows to print single config values so far. Closes: #733470