Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
repod
Commits
6fec8910
Unverified
Commit
6fec8910
authored
Oct 09, 2019
by
Maxim Baz
Browse files
validate common fields
parent
05527db7
Changes
1
Show whitespace changes
Inline
Side-by-side
db-update/db-update
View file @
6fec8910
...
@@ -145,6 +145,15 @@ async def main() -> int:
...
@@ -145,6 +145,15 @@ async def main() -> int:
"checkdepends"
:
pkginfo
.
get
(
"checkdepend"
),
"checkdepends"
:
pkginfo
.
get
(
"checkdepend"
),
"packages"
:
[],
"packages"
:
[],
}
}
# validate that common fields of every pkg have the same values within the same pkgbase
if
(
pkgbases
[
repo
][
pkgbase
][
"version"
]
!=
pkginfo
[
"pkgver"
][
0
]
or
pkgbases
[
repo
][
pkgbase
][
"makedepends"
]
!=
pkginfo
.
get
(
"makedepend"
)
or
pkgbases
[
repo
][
pkgbase
][
"checkdepends"
]
!=
pkginfo
.
get
(
"checkdepend"
)
):
raise
RuntimeError
(
f
"Common fields differ in pkgbase='
{
pkgbase
}
'"
)
pkgbases
[
repo
][
pkgbase
][
"packages"
].
append
(
pkgbases
[
repo
][
pkgbase
][
"packages"
].
append
(
build_pkgmeta
(
pkgpath
,
pkginfo
,
pkgfiles
)
build_pkgmeta
(
pkgpath
,
pkginfo
,
pkgfiles
)
)
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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