Commit 86c4298b authored by Иван Мажукин's avatar Иван Мажукин Committed by Vitaly Lipatov

epm play common: add snap_get_pkgurl

parent 09c48d80
...@@ -283,6 +283,12 @@ is_repacked_package() ...@@ -283,6 +283,12 @@ is_repacked_package()
return 0 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 case "$1" in
"--description") "--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