Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pcy
sspt
Commits
92fa18d6
Commit
92fa18d6
authored
Nov 13, 2017
by
pcy
Browse files
don't quit if a package fails to compile
parent
345effcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
local/libexec/sspt/sspt-update
View file @
92fa18d6
...
...
@@ -36,12 +36,20 @@ update_package() {
upgrade_package
()
{
exec_subcommand pkgcmd config
"
$1
"
&&
\
exec_subcommand pkgcmd build
"
$1
"
&&
\
exec_subcommand strace
"
$1
"
||
exit
1
exec_subcommand strace
"
$1
"
return
$?
}
upgrade_pkgs
()
{
# TODO: speed this up, maybe by parallellising this?
local
ERRORS
=
""
while
read
-r
PKG
;
do
upgrade_package
"
$PKG
"
if
!
upgrade_package
"
$PKG
"
;
then
if
[
-z
"
$ERRORS
"
]
;
then
ERRORS
=
"
$PKG
"
else
ERRORS
=
"
$ERRORS
,
$PKG
"
fi
fi
done
<
"/tmp/upgrade_list"
rm
/tmp/upgrade_list
}
...
...
@@ -59,6 +67,7 @@ update_selection() {
}
update_all
()
{
# TODO: speed this up, maybe by parallellising this?
while
read
-r
PKG
;
do
echo
-n
"
$PKG
: "
if
!
update_package
"
$PKG
"
;
then
...
...
Write
Preview
Markdown
is supported
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