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
1a0b64eb
Commit
1a0b64eb
authored
Mar 26, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: drop update_url_if_need_mirrored, we hope eget will helps us
parent
1760703b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
32 deletions
+3
-32
common.sh
play.d/common.sh
+3
-31
yandex-browser.sh
play.d/yandex-browser.sh
+0
-1
No files found.
play.d/common.sh
View file @
1a0b64eb
...
...
@@ -11,13 +11,6 @@ eget()
epm tool eget
"
$@
"
}
check_url_is_accessible
()
{
local
res
eget
--check
"
$1
"
}
cd_to_temp_dir
()
{
PKGDIR
=
$(
mktemp
-d
)
...
...
@@ -39,37 +32,16 @@ is_supported_arch()
return
1
}
# update URL variable
update_url_if_need_mirrored
()
{
local
MIRROR
=
"
$1
"
local
SECONDURL
check_url_is_accessible
"
$URL
"
&&
return
if
[
-n
"
$MIRROR
"
]
;
then
check_url_is_accessible
"
$MIRROR
"
&&
URL
=
"
$MIRROR
"
return
fi
MIRROR
=
"https://mirror.eterfund.ru"
SECONDURL
=
"
$(
echo
"
$URL
"
|
sed
-e
"s|^.*://|
$MIRROR
/|"
)
"
check_url_is_accessible
"
$SECONDURL
"
&&
URL
=
"
$SECONDURL
"
&&
return
MIRROR
=
"https://mirror.eterfund.org"
SECONDURL
=
"
$(
echo
"
$URL
"
|
sed
-e
"s|^.*://|
$MIRROR
/|"
)
"
check_url_is_accessible
"
$SECONDURL
"
&&
URL
=
"
$SECONDURL
"
&&
return
}
get_latest_version
()
{
local
epmver
=
"
$(
epm
--short
--version
)
"
# TODO: use check_url_is_accessible with more short URL (domain?)
URL
=
"https://eepm.ru/releases/
$epmver
/app-versions"
if
!
update_url_if_need_mirrored
;
then
local
URL
=
"https://eepm.ru/releases/
$epmver
/app-versions"
if
!
eget
-q
-O-
"
$URL
/
$1
"
;
then
URL
=
"https://eepm.ru/app-versions"
update_url_if_need_mirrored
||
return
eget
-q
-O-
"
$URL
/
$1
"
fi
epm tool eget
-q
-O-
"
$URL
/
$1
"
}
print_product_alt
()
...
...
play.d/yandex-browser.sh
View file @
1a0b64eb
...
...
@@ -28,7 +28,6 @@ fi
# See also https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=yandex-browser-beta
URL
=
"https://repo.yandex.ru/yandex-browser"
update_url_if_need_mirrored
||
update_url_if_need_mirrored https://download.etersoft.ru/pub/download/yandex-browser
if
[
"
$(
epm print info
-s
)
"
=
"alt"
]
||
[
"
$(
epm print info
-p
)
"
!=
"rpm"
]
;
then
# epm uses eget to download * names
...
...
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