You are not logged in.

#1 2018-03-04 17:57:15

Doron.Behar
Member
Registered: 2016-12-21
Posts: 36

I get a python error when trying to push a new AUR package

Here is what `git push -u origin master` gives me:

Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 613 bytes | 613.00 KiB/s, done.
Total 4 (delta 0), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "hooks/update", line 11, in <module>
remote:     load_entry_point('aurweb==4.6.0', 'console_scripts', 'aurweb-git-update')()
remote:   File "/usr/lib/python3.6/site-packages/aurweb-4.6.0-py3.6.egg/aurweb/git/update.py", line 306, in main
remote: KeyError: 'pkgbase'
remote: error: hook declined to update refs/heads/master
To ssh+git://aur4.archlinux.org/blockstack-core
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh+git://aur4.archlinux.org/blockstack-core'

If there is a problem with my package, it could be great if a more informational error would be printed from the `remote:`

Offline

#2 2018-03-04 18:04:50

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: I get a python error when trying to push a new AUR package

You could also try ircs://chat.freenode.net/archlinux-aur or https://lists.archlinux.org/listinfo/aur-general

Offline

#3 2018-03-04 18:36:54

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: I get a python error when trying to push a new AUR package

Why are you using aur4.archlinux.org?

I just pushed a package and it worked fine FWIW, there has been no new release or recent hotfixes.

But that error should only happen if srcinfo.parse returned successfully, with a metadata object that does not contain a pkgbase. Was your .SRCINFO created by makepkg --printsrcinfo, or mutilated by hand?

Last edited by eschwartz (2018-03-04 18:44:10)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2018-03-05 17:51:36

Doron.Behar
Member
Registered: 2016-12-21
Posts: 36

Re: I get a python error when trying to push a new AUR package

You were right, from some reason I forgot to run: `makepkg --printsrcinfo`, I was completely sure I ran it. Thanks!

Offline

#5 2018-03-05 18:28:18

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: I get a python error when trying to push a new AUR package

See my signature for how to avoid this in the future. big_smile


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB