You are not logged in.

#1 2018-11-19 17:48:07

risto3
Member
Registered: 2016-09-27
Posts: 18

error when trying to push updated python-relatorio

I'd like to push the update python-relatorio package which I also merged to be a split-package instead of separate packages.

I get the following error:

richard@sarchx64:/home/richard/src/aur/python-relatorio$ git push
Énumération des objets: 7, fait.
Décompte des objets: 100% (7/7), fait.
Compression par delta en utilisant jusqu'à 12 fils d'exécution
Compression des objets: 100% (4/4), fait.
Écriture des objets: 100% (4/4), 1.41 KiB | 1.41 MiB/s, fait.
Total 4 (delta 2), réutilisés 0 (delta 0)
remote: error: cannot overwrite package: python2-relatorio
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/python-relatorio
! [remote rejected] master -> master (hook declined)
error: impossible de pousser des références vers 'ssh://aur.archlinux.org/python-relatorio'

Is there something in particular I need to do before merging these?

Offline

#2 2018-11-19 17:49:57

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,085

Re: error when trying to push updated python-relatorio

python2-relatorio need to be gone, either deleted or merged, before you can push an update like that.

Offline

#3 2018-11-19 18:09:30

risto3
Member
Registered: 2016-09-27
Posts: 18

Re: error when trying to push updated python-relatorio

Thanks for the immediate reply.  Just how can I successfully get python2-relatorio deleted?

Offline

#4 2018-11-19 20:26:15

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 2,533

Re: error when trying to push updated python-relatorio

I've resolved your deletion request by merging the two pkgbases together (rather than deleting it, this keeps votes and comments intact). You should be able to push an updated python-relatorio package now. smile

Last edited by eschwartz (2018-11-19 20:26:29)


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

Offline

#5 2018-11-19 22:27:01

risto3
Member
Registered: 2016-09-27
Posts: 18

Re: error when trying to push updated python-relatorio

Thanks, I was able to push now.
If the split packaging is okay, I will do the same with python-sql...

Offline

#6 2018-11-19 22:29:54

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 2,533

Re: error when trying to push updated python-relatorio

My major complaint is that there's simply no such thing as build_python-relatorio, so this builds nothing. Did you read the PKGBUILD documentation before doing that? Did you try building the package and using it, before pushing it?

Oh, plus it uses 2to3, which means you need to copy the sources to a second directory to do the python2 vs. python3 build since the python3 build will self-modify.

Last edited by eschwartz (2018-11-19 22:33:07)


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

Offline

#7 2018-11-19 22:34:54

risto3
Member
Registered: 2016-09-27
Posts: 18

Re: error when trying to push updated python-relatorio

Strange, I took that from https://wiki.archlinux.org/index.php/Py … guidelines
Initially I used only the package* functions without the --skip-build option.
Are you saying that such is how it should be, if so I'll correct and push the update.

Last edited by risto3 (2018-11-19 22:35:26)

Offline

#8 2018-11-19 22:39:21

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 2,533

Re: error when trying to push updated python-relatorio

I dispute your claim that the python package guidelines speak of a build_*() function. I'm a major contributor to that page and I'd know.

The PKGBUILD format describes a "build" function, and a "package" function, and you may replace "package" with multiple split package_*() functions instead. There is no such thing as split "build" functions, that would make no sense and would just be two PKGBUILDs.

Note: I did update the page to specifically call out the 2to3 translation stuff as of a couple minutes ago, which was pending from a rewrite which Foxboron and I worked on. But that's not what made me go "whaaaaaaaaaat". That's just me offering advice on something not everyone realizes.

Last edited by eschwartz (2018-11-19 22:43:31)


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

Offline

#9 2018-11-19 22:50:17

risto3
Member
Registered: 2016-09-27
Posts: 18

Re: error when trying to push updated python-relatorio

OK, I see the 2to3 bit now... WRT build(), it _seemed_ obvious that build_xxx should work as does for package_xxx, my misinterpretation.
Hopefully things are more clear now with these updated bits pushed.

Offline

#10 2018-11-19 23:25:39

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 2,533

Re: error when trying to push updated python-relatorio

Thank you, that looks a lot better.

Also note you forgot to quote $srcdir (although $pkgdir is properly quoted).


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

Offline

#11 2018-11-21 06:26:50

risto3
Member
Registered: 2016-09-27
Posts: 18

Re: error when trying to push updated python-relatorio

updated.

BTW, could someone action my merge request for python2-sql so I can push the updated split package too for python-sql?
Thanks

Offline

Board footer

Powered by FluxBB