On Tue, 22 Nov 2022, at 05:31, Amish wrote:
Hello all,
I am maintainer of a package which has pkgname as python-eyed3 but has pkgbase as python2-eyed3.
This package was moved from Arch repository to AUR few months back.
The package does not work on python2 but works on python3 and hence I am trying to remove pkgbase=python2-eyed3 from it, as it gives wrong impression that package is dependent on python2.
If I remove pkgbase line from PKGBUILD and then try to push the package (with updated .SRCINFO) it throws the following error:
git push Enumerating objects: 7, done. Counting objects: 100% (7/7), done. Delta compression using up to 2 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 354 bytes | 354.00 KiB/s, done. Total 4 (delta 2), reused 0 (delta 0), pack-reused 0 remote: error: invalid pkgbase: python-eyed3, expected python2-eyed3 remote: error: hook declined to update refs/heads/master To ssh://aur.archlinux.org/python2-eyed3.git
There seems to be another "deleted" package called python-eyed3 too.
I cloned it and updated PKGBUILD and .SRCINFO and pushed the changes.
This also throws an error.
git push Enumerating objects: 7, done. Counting objects: 100% (7/7), done. Delta compression using up to 2 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 1.40 KiB | 1.40 MiB/s, done. Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 remote: error: cannot overwrite package: python-eyed3 remote: error: hook declined to update refs/heads/master To ssh://aur.archlinux.org/python-eyed3.git ! [remote rejected] master -> master (hook declined) error: failed to push some refs to 'ssh://aur.archlinux.org/python-eyed3.git'
Error above does not give much information on why it can not overwrite. But its possibly because python2-eyed3 creates a pkgname conflict with it.
In short, how do I update the package to remove python2-eyed3 as pkgbase?
Any idea? Please let me know.
Thank you,
Amish
The current "python2-eyed3" already contains the "python-eyed3", so I assume that the "cannot overwrite package" error means you can't upload another pkgbase which contains the same pkgname as an existing one. Try removing pkgname=python-eyed3 from pkgbase=python2-eyed3, then upload the new package, then submit a merge request from the old one onto the new one. -- Hugo Osvaldo Barrera