fix: update repo information with aurblup script / git packaging repo changes
Currently, the Repo
column in OfficialProviders
is not updated when a package is moved from one repository to another.
Note that we only save a package/provides combination once, hence if a package is available in f.e. core
and testing
at the same time,
it would only put just one record into the OfficialProviders table.
Now, we iterate through the repos one by one and the last value is kept for mapping a (package/provides) combination to a repo.
Due to that, the repos listed in the sync-dbs
config setting should be ordered such that the "testing" repos are listed first.
For example we have mypkg
in core
and core-testing
at the same time -> We'd want to store core
as repo, not core-testing
...
The sync-dbs
list in the default config file is adapted for the repo-changes that will be introduced with the git migration.
https://archlinux.org/news/git-migration-announcement/
Signed-off-by: moson-mo mo-son@mailbox.org