Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
ea08fd59
Commit
ea08fd59
authored
Apr 12, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_versions.sh: add play options support
parent
db3edf22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
update_versions.sh
tests/update_versions.sh
+10
-5
No files found.
tests/update_versions.sh
View file @
ea08fd59
...
...
@@ -24,8 +24,8 @@ install_app()
local
alt
=
"
$2
"
[
-n
"
$alt
"
]
&&
applog
=
"
$applog
.
$alt
"
&&
alt
=
" =
$alt
"
echo
-n
"epm play
$app
$alt
..."
$EPM
play
--verbose
--auto
$app
$alt
>
$EDIR
/
$applog
2>&1
echo
-n
"epm play
$
playopt
$
app
$alt
..."
$EPM
play
$playopt
--verbose
--auto
$app
$alt
>
$EDIR
/
$applog
2>&1
local
RES
=
$?
[
"
$RES
"
=
0
]
&&
echo
"OK"
||
echo
"FAILED"
[
"
$RES
"
=
0
]
||
return
$RES
...
...
@@ -40,7 +40,7 @@ install_app()
install_app_alt
()
{
local
app
=
"
$1
"
local
productalt
=
"
$(
$EPM
play
--product-alternatives
$app
)
"
local
productalt
=
"
$(
$EPM
play
$playopt
--product-alternatives
$app
)
"
if
[
-z
"
$productalt
"
]
;
then
install_app
$app
...
...
@@ -49,11 +49,16 @@ install_app_alt()
# оставляем дефолтный вариант в конце в системе
for
i
in
$productalt
""
;
do
$EPM
play
--remove
--auto
$app
$EPM
play
$playopt
--remove
--auto
$app
install_app
$app
$i
done
}
if
[
"
$1
"
=
"--ipfs"
]
;
then
playopt
=
"
$1
"
shift
fi
if
[
-n
"
$1
"
]
;
then
install_app_alt
"
$1
"
exit
...
...
@@ -61,7 +66,7 @@ fi
distr
=
"
$(
$EPM
print info
-s
)
"
# install/update all
$EPM
play
--list-all
--short
|
while
read
app
;
do
$EPM
play
$playopt
--list-all
--short
|
while
read
app
;
do
# hack for broken gitlab-runner
[
"
$distr
"
!=
"alt"
]
&&
[
"
$app
"
=
"gitlab-runner"
]
&&
continue
install_app_alt
$app
</dev/null
...
...
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