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
Vladislav
eepm
Commits
df656699
Commit
df656699
authored
Apr 24, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play.d/common.sh: set VERSION to update from epm (latest if --force)
parent
d9f1d0c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
common.sh
play.d/common.sh
+15
-1
No files found.
play.d/common.sh
View file @
df656699
...
...
@@ -104,10 +104,12 @@ case "$1" in
echo
"Skipping update of
$PKGNAME
(package is not installed)"
exit
fi
if
epm mark showhold |
grep
-q
"^
$PKGNAME
$"
;
then
echo
"Skipping update of
$PKGNAME
(package is on hold, see '# epm mark showhold')"
exit
fi
pkgver
=
"
$(
epm print version
for
package
$PKGNAME
)
"
latestpkgver
=
"
$(
get_latest_version
$PKGNAME
)
"
# ignore update if have no latest package version or the latest package version no more than installed one
...
...
@@ -121,7 +123,14 @@ case "$1" in
echo
"Latest available version of
$PKGNAME
:
$latestpkgver
. Installed version:
$pkgver
."
exit
fi
echo
"Updating
$PKGNAME
from
$pkgver
to available
$latestpkgver
version ..."
# kind of hack
if
echo
"
$EPM_OPTIONS
"
|
grep
-q
--
"--force"
;
then
echo
"Updating
$PKGNAME
from
$pkgver
to latest available version ..."
else
echo
"Updating
$PKGNAME
from
$pkgver
to
$latestpkgver
version ..."
VERSION
=
"
$latestpkgver
"
fi
fi
;;
"--run"
)
...
...
@@ -199,3 +208,8 @@ is_repacked_package()
# skip install if there is package installed not via epm play
is_repacked_package
$REPOPKGNAME
||
exit
0
# set version when update
if
[
-z
"
$VERSION
"
]
;
then
[
-z
"
$2
"
]
||
VERSION
=
"
$2
"
fi
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