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
dbscripts
Commits
aa8e0b27
Verified
Commit
aa8e0b27
authored
Mar 30, 2021
by
Morten Linderud
🏄
Browse files
test/lib/common: make checkPackageDB DEBUGPKGPOOL aware
Signed-off-by:
Morten Linderud
<
morten@linderud.pw
>
parent
dbf71dba
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/lib/common.bash
View file @
aa8e0b27
...
...
@@ -200,7 +200,13 @@ checkPackageDB() {
local
pkgname
local
pkgarches
=(
$(
.
"fixtures/
$pkgbase
/PKGBUILD"
;
echo
${
arch
[@]
}
)
)
local
pkgnames
=(
$(
.
"fixtures/
$pkgbase
/PKGBUILD"
;
echo
${
pkgname
[@]
}
)
)
# TODO: We need a better way to figure out when we are dealing with
# debug packages
if
[[
"
${
repo
}
"
=
*
-debug
]]
;
then
local
pkgnames
=(
"
${
pkgbase
}
-debug"
)
else
local
pkgnames
=(
$(
.
"fixtures/
$pkgbase
/PKGBUILD"
;
echo
"
${
pkgname
[@]
}
"
)
)
fi
if
[[
${
pkgarches
[@]
}
==
any
]]
;
then
repoarches
=(
${
ARCHES
[@]
}
)
...
...
@@ -211,9 +217,8 @@ checkPackageDB() {
for
pkgarch
in
${
pkgarches
[@]
}
;
do
for
pkgname
in
${
pkgnames
[@]
}
;
do
pkgfile
=
"
${
pkgname
}
-
${
pkgver
}
-
${
pkgarch
}${
PKGEXT
}
"
[
-r
${
FTP_BASE
}
/
${
PKGPOOL
}
/
${
pkgfile
}
]
[
-r
${
FTP_BASE
}
/
${
PKGPOOL
}
/
${
pkgfile
}
.sig
]
[
-r
${
FTP_BASE
}
/
${
PKGPOOL
}
/
${
pkgfile
}
]
||
[
-r
${
FTP_BASE
}
/
${
DEBUGPKGPOOL
}
/
${
pkgfile
}
]
[
-r
${
FTP_BASE
}
/
${
PKGPOOL
}
/
${
pkgfile
}
.sig
]
||
[
-r
${
FTP_BASE
}
/
${
DEBUGPKGPOOL
}
/
${
pkgfile
}
.sig
]
[
!
-r
${
STAGING
}
/
${
repo
}
/
${
pkgfile
}
]
[
!
-r
${
STAGING
}
/
${
repo
}
/
${
pkgfile
}
.sig
]
...
...
@@ -226,10 +231,12 @@ checkPackageDB() {
fi
[
-L
${
FTP_BASE
}
/
${
repo
}
/os/
${
repoarch
}
/
${
pkgfile
}
]
[
"
$(
readlink
-e
${
FTP_BASE
}
/
${
repo
}
/os/
${
repoarch
}
/
${
pkgfile
}
)
"
==
${
FTP_BASE
}
/
${
PKGPOOL
}
/
${
pkgfile
}
]
[
"
$(
readlink
-e
${
FTP_BASE
}
/
${
repo
}
/os/
${
repoarch
}
/
${
pkgfile
}
)
"
==
${
FTP_BASE
}
/
${
PKGPOOL
}
/
${
pkgfile
}
]
||
\
[
"
$(
readlink
-e
${
FTP_BASE
}
/
${
repo
}
/os/
${
repoarch
}
/
${
pkgfile
}
)
"
==
${
FTP_BASE
}
/
${
DEBUGPKGPOOL
}
/
${
pkgfile
}
]
[
-L
${
FTP_BASE
}
/
${
repo
}
/os/
${
repoarch
}
/
${
pkgfile
}
.sig
]
[
"
$(
readlink
-e
${
FTP_BASE
}
/
${
repo
}
/os/
${
repoarch
}
/
${
pkgfile
}
.sig
)
"
==
${
FTP_BASE
}
/
${
PKGPOOL
}
/
${
pkgfile
}
.sig
]
[
"
$(
readlink
-e
${
FTP_BASE
}
/
${
repo
}
/os/
${
repoarch
}
/
${
pkgfile
}
.sig
)
"
==
${
FTP_BASE
}
/
${
PKGPOOL
}
/
${
pkgfile
}
.sig
]
||
\
[
"
$(
readlink
-e
${
FTP_BASE
}
/
${
repo
}
/os/
${
repoarch
}
/
${
pkgfile
}
.sig
)
"
==
${
FTP_BASE
}
/
${
DEBUGPKGPOOL
}
/
${
pkgfile
}
.sig
]
for
db
in
${
DBEXT
}
${
FILESEXT
}
;
do
[
-r
"
${
FTP_BASE
}
/
${
repo
}
/os/
${
repoarch
}
/
${
repo
}${
db
%.tar.*
}
"
]
...
...
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