Age | Commit message (Collapse) | Author |
|
We shouldn't generate the deprecated ones
|
|
Replaced by the "Gbp[-Pq]: Topic <topic>" command.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Tag the head checked out at command invocation. The build can
take some time and the repo might have changed underneath us.
Closes: #776506
|
|
"Gbp-Pq: Topic <topic>" leaves the marker in the exorted patch so we
shouldn't use it by default.
This reverts commit 7ce15d2434ee42aa5a1afce3d03069c5efb2db1b.
|
|
Replaced by the "Gbp[-Pq]: Topic <topic>" command.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
|
|
to download tarballs via HTTP
Closes: #747101
|
|
Initial version of gbp-pq-rpm - a tool for managing patch queues for rpm
packages. The functionality more or less corresponds to that of the
(Debian) gbp-pq. The only major difference probably being (in addition
to the obvious of working with .spec files instead of debian/) is that
patches are always imported on top of the upstream version, not on top
of the packaging branch (which might not even contain any source code).
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Olev Kartau <olev.kartau@intel.com>
|
|
A step towards being able to run GBP tools from subdirectories.
Now expands '%(top_dir)s' and '%(git_dir)s' in config file path to root
of the working directory and git metadata directory, respectively.
Also, adds a new method _read_config_file() in preparation for
supporting per-tree config files.
Fixes tests.test_Config: currently the only correct way to define the
config file(s) to be parsed is by using the GBP_CONF_FILES environment
variable.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
For selecting whether to dump all the files recursively or just the top
level directory of the tree.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
|
|
So that it can be re-used by the upcoming pq-rpm tool.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
|
|
|
|
This commits the changes in the pq right away. This is currently
experimental and subject to change.
|
|
|
|
Closes: #761160
|
|
since they now show up with --list-cmds
|
|
|
|
Closes: #758909
|
|
Make it easier for the user to detect misformated replacement strings in
config files and command line options.
|
|
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>
|
|
|
|
It's a boolean indicating wether we fetch the author information from
git not the author information itself.
Git-Dch: Ignore
|
|
Gbp-Dch: Ignore
|
|
We don't change any mainttrailer options if already given.
Thanks: James McCoy for the detailed explanation
Closes: #740566
|
|
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>
|
|
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>
|
|
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
|
|
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>
|
|
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>
|
|
Based on a patch by Kamal Mostafa
|
|
This reverts commit b2549fac19f2d666552291a4fcf2020ca0570834.
|
|
Make it obvious that a hook failed and not a gbp internal function
|
|
so it's available to all hooks
|
|
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
|
|
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
|
|
Thanks: Sandro Tosi
Closes: #748339
|
|
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.
|
|
|
|
This allows us to build an internal list of valid options and print
these.
|
|
This matches the function name
|
|
This only allows to print single config values so far.
Closes: #733470
|
|
mostly reverting e1780f0.
Closes: #742907
|
|
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
^^^^
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Closes: #739888
|
|
|
|
"gbp buildpackage" did this already but others didn't
Closes: #733759
|
|
Closes: #732678
|