build fails if there is no debian/patches/series
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
Fix Released
|
High
|
Scott Moser |
Bug Description
If there are no patches, then a build will fail.
$ git ubuntu clone requests
$ git checkout pkg/import/2.18.4-2
$ git checkout pkg/import/2.18.4-2 >/dev/null 2>&1
$ git ubuntu build
11/01/2018 17:09:31 - WARNING:
Traceback (most recent call last):
File "/snap/
load_
File "/snap/
sys.
File "/snap/
retry_
File "/snap/
retry_backoffs,
File "/snap/
retry_backoffs,
File "/snap/
tree_hash = repo.quiltify_
File "/snap/
quiltify_
File "/snap/
regenerated
File "/snap/
names = os.listdir(src)
FileNotFoundError: [Errno 2] No such file or directory: '.pc'
Related branches
- Robie Basak: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 31 lines (+8/-5)1 file modifiedgitubuntu/git_repository.py (+8/-5)
description: | updated |
description: | updated |
This fix was landed to master last year.
commit dbd94e58c56f871 ae56c7ffd13be40 b392808068
Author: Scott Moser <email address hidden>
Date: Thu Nov 1 17:10:44 2018 -0400
build: Fix build when there are no quilt patches.
If a package did not have any quilt packages, then git-ubuntu build
would stack trace trying to copy the non-existant .pc directory.
As an example:
$ git ubuntu clone requests
$ git checkout pkg/import/2.18.4-2
$ git ubuntu build
LP: #1801168