[aur-general] AUR 4.0.0 pre-alpha

Ido Rosen ido at kernel.org
Tue Dec 30 04:39:28 UTC 2014

Posted in other thread, but:

The AUR4 update hook compares an str to an int when looking at the
pkginfo['epoch'], so packages with an epoch set fail to pass the
update hook.  Probably should check that the string pkginfo['epoch']
contains only numbers, then do an int(pkginfo['epoch']) in the
comparison line there...  line 45 of save_srcinfo.

Failed to setup-repo ceph-git ... maybe it already exists?
+ git push ssh+git://aur@aur-dev.archlinux.org:2222/ceph-git.git/
Counting objects: 35, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (25/25), done.
Writing objects: 100% (35/35), 7.48 KiB | 0 bytes/s, done.
Total 35 (delta 17), reused 14 (delta 10)
remote: Traceback (most recent call last):
remote:   File "hooks/update", line 212, in <module>
remote:     save_srcinfo(srcinfo, db, cur, user)
remote:   File "hooks/update", line 45, in save_srcinfo
remote:     if 'epoch' in pkginfo and pkginfo['epoch'] > 0:
remote: TypeError: unorderable types: str() > int()
remote: error: hook declined to update refs/heads/master
To ssh+git://aur@aur-dev.archlinux.org:2222/ceph-git.git/
 ! [remote rejected] aur4/ceph-git -> master (hook declined)

On Mon, Dec 29, 2014 at 11:15 PM, Ido Rosen <ido at kernel.org> wrote:
> On Mon, Dec 29, 2014 at 11:00 PM, Dave Reisner <d at falconindy.com> wrote:
>> On Mon, Dec 29, 2014 at 10:21:17PM -0500, Dave Reisner wrote:
>>> On Mon, Dec 29, 2014 at 09:49:24PM -0500, Ido Rosen wrote:
>>> > Is there currently a script to just create a .SRCINFO from a PKGBUILD?
>>> >  I don't want any side effects like downloading src packages (i.e. I
>>> > don't want to run makepkg or mkaurball), etc. since this is for use in
>>> > git filter-branch --tree-filter.
>>> There exists a tool in the pkgbuild-introspection git repo[1] which will
>>> write a .SRCINFO to standard output when given a PKGBUILD. Pull requests
>>> welcome to give it a better name (mksrcinfo?) and some UI.
>>> dR
>>> [1] https://github.com/falconindy/pkgbuild-introspection/blob/master/introspect
>> Nevermind, this (mksrcinfo) now exists in pkgbuild-introspection-git.
>> Bug reports welcome.
>> dR
> Thanks.  For now, I'm just copying and pasting this into my script
> rather than depending on pkgbuild-introspection-git. :-)
> See other thread (one git <-> AUR4 per package git repos) in a minute
> for the script contents.

More information about the aur-general mailing list