Commit 3417b2d6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play.d/common.sh: move span_get_pkgurl()

parent 97f1062a
......@@ -134,6 +134,11 @@ install_pack_pkgurl()
epm pack $repack --install $PKGNAME "$PKGURL" "$@"
}
snap_get_pkgurl()
{
local SNAPNAME=$1
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|'
}
get_latest_version()
{
......@@ -283,12 +288,6 @@ is_repacked_package()
return 0
}
snap_get_pkgurl()
{
local SNAPNAME=$1
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|'
}
case "$1" in
"--description")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment