collision with debian dir on build-source - FileExistsError: [Errno 17] File exists: 'debian'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
Triaged
|
High
|
Unassigned |
Bug Description
Hi,
today it seems I ran into a special case of a conflicting debian dir.
Repro via:
$ git ubuntu clone heartbeat
# note this is currently at 1:3.0.6-6 but I went one version back and had the same
On a subsequent build I get:
$ git ubuntu build-source --verbose --sign
11/27/2017 11:27:59 - DEBUG:Executing: git config gitubuntu.lpuser
11/27/2017 11:27:59 - DEBUG:Executing: grep -q "* -ident" /tmp/heartbeat/
11/27/2017 11:27:59 - DEBUG:Executing: grep -q "* -text" /tmp/heartbeat/
11/27/2017 11:27:59 - DEBUG:Executing: grep -q "* -eol" /tmp/heartbeat/
11/27/2017 11:27:59 - DEBUG:Executing: git config gitubuntu.lpuser
11/27/2017 11:27:59 - DEBUG:Executing: sh -c "dpkg-parsechan
11/27/2017 11:28:00 - DEBUG:Executing: git status --porcelain
11/27/2017 11:28:00 - DEBUG:Executing: sh -c "dpkg-parsechan
11/27/2017 11:28:00 - DEBUG:Executing: sh -c "dpkg-parsechan
11/27/2017 11:28:00 - DEBUG:Executing: sh -c "dpkg-parsechan
11/27/2017 11:28:00 - DEBUG:Executing: git worktree add --detach --force /tmp/tmpaa2ghod9 HEAD
11/27/2017 11:28:00 - DEBUG:Executing: dpkg-source --print-format .
11/27/2017 11:28:00 - DEBUG:Executing: git worktree prune
11/27/2017 11:28:00 - DEBUG:Executing: git worktree add --detach --force /tmp/tmpthhzn4e0 abb8cda291a7064
11/27/2017 11:28:00 - DEBUG:Executing: dpkg-source --print-format .
11/27/2017 11:28:00 - DEBUG:Executing: git worktree prune
11/27/2017 11:28:00 - DEBUG:Executing: tar -x --strip-
Traceback (most recent call last):
File "/snap/
load_
File "/snap/
sys.
File "/snap/
default_
File "/snap/
retry_
File "/snap/
retry_backoffs,
File "/snap/
retry_backoffs,
File "/snap/
tree_hash = repo.quiltify_
File "/snap/
quiltify_
File "/snap/
'debian',
File "/snap/
os.
File "/snap/
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: 'debian'
Maybe the reason in this case is that the main orig tarball already has a debian Dir?
$ tar -tf heartbeat_
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
Heartbeat-
$ tar -tf heartbeat_
debian/
debian/Makefile.am
debian/changelog
debian/clean
debian/compat
debian/control
debian/copyright
debian/
debian/
debian/
debian/
debian/
debian/
debian/
debian/
debian/
debian/
debian/
debian/patches/
debian/
debian/
debian/
debian/
debian/
debian/
debian/
debian/rules
debian/source/
debian/
debian/tests/
debian/
debian/
Related branches
- Robie Basak: Needs Fixing
- Server Team CI bot: Approve (continuous-integration)
- Christian Ehrhardt : Pending requested
- Andreas Hasenack: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 1849 lines (+783/-376)15 files modifiedbin/git-ubuntu (+6/-1)
gitubuntu/build.py (+209/-134)
gitubuntu/dsc.py (+37/-11)
gitubuntu/exportorig.py (+2/-4)
gitubuntu/git_repository.py (+155/-48)
gitubuntu/importer.py (+56/-29)
gitubuntu/lint.py (+7/-5)
gitubuntu/merge.py (+1/-1)
gitubuntu/run.py (+15/-0)
gitubuntu/versioning.py (+35/-0)
scripts/import-source-packages.py (+20/-25)
scripts/scriptutils.py (+202/-13)
scripts/source-package-walker.py (+20/-85)
scripts/update-repository-alias.py (+15/-15)
snap/snapcraft.yaml (+3/-5)
tags: | added: build |
Changed in usd-importer: | |
status: | New → In Progress |
assignee: | nobody → Nish Aravamudan (nacc) |
milestone: | none → future |
Changed in usd-importer: | |
status: | In Progress → Triaged |
assignee: | Nish Aravamudan (nacc) → nobody |
I could not more details with "--keep-build-env", but since it is reproducible I think the bug is good for you to take a look at.