Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pcy
sspt
Commits
29e841f7
Commit
29e841f7
authored
Dec 11, 2017
by
pcy
Browse files
fixes
parent
04ef34db
Changes
2
Hide whitespace changes
Inline
Side-by-side
local/libexec/sspt/sspt-autogen
View file @
29e841f7
...
@@ -165,7 +165,7 @@ sspt_build() {
...
@@ -165,7 +165,7 @@ sspt_build() {
makepkg -e
makepkg -e
}
}
sspt_install() {
sspt_install() {
makepkg -
e
-
o -i
makepkg -
i
-
-noconfirm && rm *.pkg.tar.xz
}
}
sspt_clean() {
sspt_clean() {
makepkg -c -e -o
makepkg -c -e -o
...
...
local/libexec/sspt/sspt-update
View file @
29e841f7
...
@@ -22,11 +22,11 @@ read_pkg_version() {
...
@@ -22,11 +22,11 @@ read_pkg_version() {
update_package
()
{
update_package
()
{
local
PKG
=
"
$1
"
local
PKG
=
"
$1
"
local
BEFORE
=
"
$(
read_pkg_version
"
$1
"
)
"
local
BEFORE
=
"
$(
read_pkg_version
"
$1
"
)
"
exec_subcommand pkgcmd pull
"
$PKG
"
||
exit
1
exec_subcommand pkgcmd pull
"
$PKG
"
||
return
2
local
AFTER
=
"
$(
exec_subcommand pkgcmd version
"
$PKG
"
)
"
local
AFTER
=
"
$(
exec_subcommand pkgcmd version
"
$PKG
"
)
"
if
[
"
$BEFORE
"
!=
"
$AFTER
"
]
;
then
if
[
"
$BEFORE
"
!=
"
$AFTER
"
]
;
then
exec_subcommand src-db reg
"
$PKG
"
"
$AFTER
"
||
exit
1
exec_subcommand src-db reg
"
$PKG
"
"
$AFTER
"
||
return
2
return
1
return
1
fi
fi
...
@@ -59,14 +59,33 @@ upgrade_pkgs() {
...
@@ -59,14 +59,33 @@ upgrade_pkgs() {
}
}
update_selection
()
{
update_selection
()
{
local
ERRORS
=
""
local
ALLARGS
=(
"
$@
"
)
local
ALLARGS
=(
"
$@
"
)
for
PKG
in
"
${
ALLARGS
[@]
}
"
;
do
for
PKG
in
"
${
ALLARGS
[@]
}
"
;
do
echo
-n
"
$PKG
: "
echo
-n
"
$PKG
: "
if
!
update_package
"
$PKG
"
;
then
update_package
"
$PKG
"
local
RETV
=
"
$?
"
if
[
"
$RETV
"
=
"2"
]
;
then
if
[
-z
"
$ERRORS
"
]
;
then
ERRORS
=
"
$PKG
"
else
ERRORS
=
"
$ERRORS
,
$PKG
"
fi
elif
[
"
$ERTV
"
=
"1"
]
;
then
echo
"
$PKG
"
>>
/tmp/upgrade_list
echo
"
$PKG
"
>>
/tmp/upgrade_list
fi
fi
done
done
if
!
[
-z
"
$ERRORS
"
]
;
then
(>
&2
echo
"Failed to update the following packages:
$ERRORS
\n
"
\
"Press any key to continue."
)
local
FOOBAR
=
""
read
-r
FOOBAR
unset
FOOBAR
fi
upgrade_pkgs
upgrade_pkgs
}
}
...
...
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