You are not logged in.

#1 2015-06-30 18:04:36

Ambrevar
Member
Registered: 2011-08-14
Posts: 212
Website

AUR4 push error: cannot overwrite package

I've moved all my up-to-date packages to AUR4 but one: lua51-penlight. When pushing I get the following error

remote: error: cannot overwrite package: lua51-penlight

My first guess is that lua-penlight from the repo sets pkgbase=penlight, and this package used to do so as well. See https://aur.archlinux.org/packages/lua51-penlight/.
After a first fail, I removed the pkgbase line, but it keeps failing.
I changed the package name to lua51-luapenlight, and then it worked. The name is a tad unfortunate though sad

Any hint on this one?

Last edited by Ambrevar (2015-06-30 18:22:17)

Offline

#2 2015-07-01 01:49:43

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: AUR4 push error: cannot overwrite package

Saw this yesterday on IRC, someone was trying to push to the wrong repo. If the pkgbase is penlight, make sure you're pushing to the penlight.git repo.

Offline

#3 2015-07-01 08:19:13

Ambrevar
Member
Registered: 2011-08-14
Posts: 212
Website

Re: AUR4 push error: cannot overwrite package

In case of a wrong repo, I get the following error message:

error: invalid pkgbase: A, expected B

It's a different yet probably related problem here.

Offline

#4 2015-07-01 13:42:14

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: AUR4 push error: cannot overwrite package

So you verified that you're pushing to penlight.git and not lua51-penlight.git?

Offline

#5 2015-07-03 11:03:06

Ambrevar
Member
Registered: 2011-08-14
Posts: 212
Website

Re: AUR4 push error: cannot overwrite package

No, I'm pushing to lua51-penlight.git since I've removed the `pkgbase` variable.

Offline

#6 2015-07-03 14:01:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: AUR4 push error: cannot overwrite package

So that's your problem.

Offline

#7 2015-07-03 15:50:15

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: AUR4 push error: cannot overwrite package

I think there currently is some protection in place for old AUR packages. The names used in the old AUR are reserved for the same maintainer with the same (updated) package, so if you already have pkgbase penlight with pkgname lua51-penlight, then you have to upload to penlight.git. I think you can change the pkgname if the pkgbase stays the same. You cannot change the pkgbase while keeping the pkgname.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB