Skip to content

Commit

Permalink
dev-util/pkgdev: bump min requirement for pkgcore
Browse files Browse the repository at this point in the history
pkgdev 0.2.8 makes use of repo.stabilization_groups, but those where
added to pkgcore's API with 0.12.23.

Increae the minimum requirement for pkgcore to 0.12.23. Otherwise,
you'll get:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/pkgdev", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/pkgdev/scripts/__init__.py", line 48, in main
    run(os.path.basename(sys.argv[0]))
  File "/usr/lib/python3.11/site-packages/pkgdev/scripts/__init__.py", line 40, in run
    sys.exit(tool())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/snakeoil/cli/tool.py", line 81, in __call__
    ret = self.main()
          ^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pkgdev/cli.py", line 23, in main
    return super().main()
           ^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/snakeoil/cli/tool.py", line 191, in main
    self.handle_exec_exception(e)
  File "/usr/lib/python3.11/site-packages/snakeoil/cli/tool.py", line 176, in main
    exitstatus = func(self.options, self.out, self.err)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pkgdev/scripts/pkgdev_bugs.py", line 536, in main
    options.targets.extend(d.extend_targets_stable_groups(options.sets or ()))
  File "/usr/lib/python3.11/site-packages/pkgdev/scripts/pkgdev_bugs.py", line 290, in extend_targets_stable_groups
    stabilization_groups = self.options.repo.stabilization_groups
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'UnconfiguredTree' object has no attribute 'stabilization_groups'

Signed-off-by: Florian Schmaus <[email protected]>
  • Loading branch information
Flowdalic committed Sep 14, 2023
1 parent 9ada946 commit dab8c62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if [[ ${PV} == *9999 ]] ; then
else
RDEPEND="
>=dev-python/snakeoil-0.10.4[${PYTHON_USEDEP}]
>=sys-apps/pkgcore-0.12.16[${PYTHON_USEDEP}]
>=sys-apps/pkgcore-0.12.23[${PYTHON_USEDEP}]
>=dev-util/pkgcheck-0.10.16[${PYTHON_USEDEP}]
"
fi
Expand Down
2 changes: 1 addition & 1 deletion dev-util/pkgdev/pkgdev-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if [[ ${PV} == *9999 ]] ; then
else
RDEPEND="
>=dev-python/snakeoil-0.10.4[${PYTHON_USEDEP}]
>=sys-apps/pkgcore-0.12.16[${PYTHON_USEDEP}]
>=sys-apps/pkgcore-0.12.23[${PYTHON_USEDEP}]
>=dev-util/pkgcheck-0.10.16[${PYTHON_USEDEP}]
"
fi
Expand Down

0 comments on commit dab8c62

Please sign in to comment.