Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
repod
Commits
5a1bb85b
Verified
Commit
5a1bb85b
authored
Oct 07, 2019
by
Jan Alexander Steffens (heftig)
Browse files
db-update: Use pkgname if pkgbase is missing
parent
4f38fcf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
db-update/db-update
View file @
5a1bb85b
...
...
@@ -135,7 +135,10 @@ async def main() -> int:
pkgbases
=
{
r
:
{}
for
r
in
packages
.
keys
()}
for
repo
,
ps
in
sorted
(
packages
.
items
()):
for
pkgpath
,
(
pkginfo
,
pkgfiles
)
in
ps
.
items
():
pkgbase
=
pkginfo
[
"pkgbase"
][
0
]
try
:
pkgbase
=
pkginfo
[
"pkgbase"
][
0
]
except
KeyError
:
pkgbase
=
pkginfo
[
"pkgname"
][
0
]
if
pkgbase
not
in
pkgbases
[
repo
]:
pkgbases
[
repo
][
pkgbase
]
=
{
"version"
:
pkginfo
[
"pkgver"
][
0
],
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment