| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
The keys in os-release differ from lsb-release
|
| |
|
|
|
|
| |
Closes: #976914
|
| |
|
|
|
|
| |
We want an upstream version, not path
|
|
|
|
| |
Closes: #972081
|
| |
|
|
|
|
| |
Closes: #941345
|
|
|
|
| |
See #969952
|
|
|
|
|
| |
This makes the "tag" variable just the tag. This improves the
human-readability of the error message if the tag cannot be found.
|
|
|
|
| |
This eliminates an indentation level.
|
| |
|
|
|
|
|
| |
It triggers a tess failure since a test can write to a
destinatino it should not be able to write too.
|
|
|
|
| |
This makes flake8 happy
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With post-unpack scripts is currently possible to filter out files that are
not needed from the upstream branch, however it is not possible to use it to
filter files that will end up in the orig file, and in some scenarios this
is not easily doable just using a filter list.
So, run the post-unpack hook just after unpacking and before repacking the
tar.
Add tests to verify this both when using with regular --filter option
and by itself.
Closes: #812721
|
|
|
|
|
| |
Use an $GBP_SOURCES_DIR to expose the post-unpack sources dir to the hook.
Include a test that checks that all the expected env variables are set.
|
|
|
|
|
|
|
| |
Otherwise gbp is not able to build itself.
Closes: #968982
Thanks: Lukas Märdian for the detailed report
|
|
|
|
| |
Use a temporary directory to avoid 'allow-root'.
|
|
|
|
| |
This avoids the need to modify files in the home directory.
|
| |
|
|
|
|
| |
export_ref.py does not exist.
|
|
|
|
|
| |
Thanks: Andrius Merkys
Closes: #966130
|
|
|
|
| |
Thanks: Pierre Equoy
|
|
|
|
| |
Thanks Pierre Equoy
|
| |
|
|
|
|
| |
Closes: #964040
|
|
|
|
| |
This makes sure we don't use spurious files as signatures
|
|
|
|
| |
dateutil changed the exception.
|
|
|
|
| |
Closes: #963968
|
| |
|
|
|
|
| |
This eases debugging
|
|
|
|
|
|
| |
It will always be none (see check above that).
This reverts commit 3dc0bf3a8acfccdafa82b91bcc89ca2c82b46a1f.
|
| |
|
| |
|
|
|
|
| |
Closes: #962916
|
|
|
|
|
|
|
| |
When looking for matching file name we need to exscape the valid '+' but
need to do it late since it must not be escaped for git-grep.
Closes: #956103
|
|
|
|
|
| |
'.' is valid in source package names and version numbers so we
want to match exactly that and not an arbitrary character.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We used the tests to check whether the right exception was returned but
python 3.8 breaks this again:
File "/var/scratch/src/git-buildpackage/git-buildpackage/tests/doctests/test_GitVfs.py", line 56, in test_read
Failed example:
gf = vfs.open('doesnotexist') # doctest:+ELLIPSIS
Expected:
Traceback (most recent call last):
...
OSError: can't get HEAD:doesnotexist: fatal: Path 'doesnotexist' does not exist in 'HEAD'
Got:
Traceback (most recent call last):
File "/var/scratch/src/git-buildpackage/git-buildpackage/gbp/git/vfs.py", line 74, in open
return GitVfs._File(self._repo.show(
File "/var/scratch/src/git-buildpackage/git-buildpackage/gbp/git/repository.py", line 1645, in show
raise GitRepositoryError("can't get %s: %s" % (id, stderr.decode().rstrip()))
gbp.git.repository.GitRepositoryError: can't get HEAD:doesnotexist: fatal: path 'doesnotexist' does not exist in 'HEAD'
<BLANKLINE>
During handling of the above exception, another exception occurred:
<BLANKLINE>
Traceback (most recent call last):
File "/usr/lib/python3.8/doctest.py", line 1329, in __run
exec(compile(example.source, filename, "single",
File "<doctest test_read[12]>", line 1, in <module>
gf = vfs.open('doesnotexist') # doctest:+ELLIPSIS
File "/var/scratch/src/git-buildpackage/git-buildpackage/gbp/git/vfs.py", line 78, in open
raise OSError(e)
OSError: can't get HEAD:doesnotexist: fatal: path 'doesnotexist' does not exist in 'HEAD'
Doctest were a nice feature but keeping up with the subtle breackage is
too cumbersome.
|
| |
|
| |
|
|
|
|
|
|
|
| |
since this uses python3
Closes: #943107
Thanks: Boyuan Yang for the hints
|
|
|
|
| |
It's not needed.
|
| |
|
|
|
|
|
|
| |
This makes 'patch-numbers = False # comment' work.
Thanks: Mechtilde Stehmann for the report
|
|
|
|
| |
Closes: #950216
|
|
|
|
|
|
|
| |
Add option `--upstream-signatures=[on|auto|off]` to export-orig.
Add option `--git-upstream-signatures=[on|auto|off]` to buildpackage.
Closes: 872864
|
| |
|
|
|
|
| |
The python2 version won't do
|