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
3a96b595
Commit
3a96b595
authored
5 months ago
by
Boris Yumankulov
Committed by
Vitaly Lipatov
4 months ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play snap_get_pkgurl: add multiarch support (eterbug #17702)
parent
70a6d1b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
common.sh
play.d/common.sh
+9
-1
No files found.
play.d/common.sh
View file @
3a96b595
...
...
@@ -144,8 +144,16 @@ install_pack_pkgurl()
snap_get_pkgurl
()
{
local
SNAPNAME
=
"
$1
"
case
"
$(
epm print info
-a
)
"
in
x86_64
)
local
ARCH
=
"amd64"
;;
aarch64
)
local
ARCH
=
"arm64"
;;
*
)
local
ARCH
=
"
$(
epm print info
-a
)
"
;;
esac
is_url
"
$SNAPNAME
"
&&
SNAPNAME
=
"
$(
basename
"
$SNAPNAME
"
)
"
eget
-O-
-H
Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/
$SNAPNAME
| epm
--inscript
tool json
-b
|
grep
'\["channel-map",0,"download","url"\]'
|
head
-n1
|
sed
-e
's|.*"\(.*\)"$|\1|
'
eget
-O-
-H
Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/
$SNAPNAME
| epm
--inscript
tool json
-b
|
grep
-A
8
"
$ARCH
"
|
grep
'\["channel-map",[0-9],"download","url"\]'
|
head
-n1
|
sed
's/.*"\(https:\/\/.*\)".*/\1/
'
}
# return version only for the first package
...
...
This diff is collapsed.
Click to expand it.
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