Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 795651 - dev-util/pkgdev IndexError: pop from an empty deque
Summary: dev-util/pkgdev IndexError: pop from an empty deque
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-12 18:30 UTC by Mike Gilbert
Modified: 2021-06-12 20:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2021-06-12 18:30:47 UTC
The pkgdev commit command seems to get confused when file copies are detected by git-diff. Disabling the "diff.renames" setting works around this.

> % git config diff.renames
> copies
> 
> % git status
> On branch foo
> Changes to be committed:
>   (use "git restore --staged <file>..." to unstage)
>         modified:   Manifest
>         copied:     meson-9999.ebuild -> meson-0.58.1.ebuild
>         modified:   meson-9999.ebuild
> 
> % pkgdev commit
> Traceback (most recent call last):
>   File "/usr/lib/python-exec/python3.9/pkgdev", line 4, in <module>
>     scripts.run(basename(__file__))
>   File "/usr/lib/python3.9/site-packages/pkgdev/scripts/__init__.py", line 38, in run
>     sys.exit(tool())
>   File "/usr/lib/python3.9/site-packages/snakeoil/cli/tool.py", line 79, in __call__
>     ret = self.main()
>   File "/usr/lib/python3.9/site-packages/pkgdev/cli.py", line 13, in main
>     return super().main()
>   File "/usr/lib/python3.9/site-packages/snakeoil/cli/tool.py", line 185, in main
>     self.handle_exec_exception(e)
>   File "/usr/lib/python3.9/site-packages/snakeoil/cli/tool.py", line 170, in main
>     exitstatus = func(self.options, self.out, self.err)
>   File "/usr/lib/python3.9/site-packages/pkgdev/scripts/pkgdev_commit.py", line 629, in _commit
>     changes = determine_changes(options)
>   File "/usr/lib/python3.9/site-packages/pkgdev/scripts/pkgdev_commit.py", line 521, in determine_changes
>     path = data.popleft()
> IndexError: pop from an empty deque
Comment 1 Tim Harder gentoo-dev 2021-06-12 20:49:17 UTC
Fixed in https://github.com/pkgcore/pkgdev/commit/4bc144d8.

For future note, please report upstream bugs on github if you can since I don't always notice b.g.o bugs.