Closed unixfox closed 6 years ago
With version 2.1.0 running twice should not be needed anymore as aurbs will sync now all pkgs from aur to local db before syncing anything - so the provides and splitpkgs are already known during the first run.
I think the problem here is that you are listing bareos-common in the aurbs.yml but you have to list its pkgbase which is bareos.
The aur will return bareos when aurbs queries bareos-common but aurbs expects a PKG with name bareos. Because of this aurbs won't find any files.
I tried your suggestion but that doesn't seem to work:
[2018-05-28 17:14:05] WARNING: AUR-PKG 'bareos' not found in local db --> syncing
Traceback (most recent call last):
File "/usr/bin/aurbs", line 308, in sync_pkg
pkg_local = db.get_pkg(pkgname)
File "/usr/lib/python3.6/site-packages/aurbs/db.py", line 48, in get_pkg
raise KeyError("Package '%s' not found in database" % pkgname)
KeyError: "Package 'bareos' not found in database"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/aurbs", line 315, in sync_pkg
raise PKGSyncNeeded()
aurbs.model.PKGSyncNeeded
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/aurbs", line 404, in <module>
sync_pkg(pkg, args.forcesync)
File "/usr/bin/aurbs", line 326, in sync_pkg
db.sync_pkg(pkgname)
File "/usr/lib/python3.6/site-packages/aurbs/db.py", line 72, in sync_pkg
aur.sync(pkgname)
File "/usr/lib/python3.6/site-packages/aurbs/aur.py", line 52, in sync
a = get_pkg(pkgname)
File "/usr/lib/python3.6/site-packages/aurbs/aur.py", line 46, in get_pkg
raise Exception("Invalid AUR API result for '%s'" % pkgname)
Exception: Invalid AUR API result for 'bareos'
Ok - you will need latest git version and use bareos-common
as pkgname in aurbs.yml
I added some more fixes - please try version 2.1.2
You said that the error was fixed but I still get the error about not finding the package:
PS: I ran aurbs twice like you said.