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
c848600b
Verified
Commit
c848600b
authored
Dec 16, 2021
by
Morten Linderud
🏄
Browse files
db-functions: Add more (terrible) heuristics for detecting debug packages
Signed-off-by:
Morten Linderud
<
morten@linderud.pw
>
parent
796bed5b
Pipeline
#13898
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
db-functions
View file @
c848600b
...
...
@@ -249,12 +249,27 @@ getpkgarch() {
echo
"
$_ver
"
}
getpkgdesc
()
{
local
_desc
_desc
=
"
$(
_grep_pkginfo
"
$1
"
"pkgdesc"
)
"
if
[[
-z
$_desc
]]
;
then
error
"Package '%s' has no pkgdesc in the PKGINFO. Fail!"
"
$1
"
exit
1
fi
echo
"
$_desc
"
}
# TODO: We need to not depend on pkgdesc
# here be dragons
is_debug_package
()
{
local
pkgfile
=
${
1
}
local
pkgbase
=
"
$(
getpkgbase
"
${
pkgfile
}
"
)
"
local
pkgname
=
"
$(
getpkgname
"
${
pkgfile
}
"
)
"
local
pkgdesc
=
"
$(
getpkgdesc
"
${
pkgfile
}
"
)
"
[[
${
pkgbase
}
-debug
=
${
pkgname
}
]]
[[
${
pkgdesc
}
==
"Detached debugging symbols for "
*
&&
${
pkgbase
}
-debug
=
${
pkgname
}
]]
}
check_packager
()
{
...
...
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