blob: d8b70b8e7e1af60c3e733a56094a7d0903ab000f (
plain)
1
2
3
|
packagesfile=$(curl -m 10 -s https://repo.vivaldi.com/snapshot/rpm/x86_64/repodata/repomd.xml | grep 'other.xml' | sed 's/.*\/\(.*other\.xml\.gz\).*/\1/')
update__rpmversion=$(curl -m 10 -s https://repo.vivaldi.com/snapshot/rpm/x86_64/repodata/$packagesfile | zcat | grep -A1 '<package.*vivaldi-snapshot'| grep '<version' | sed -re 's/.*ver="([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)".*rel="([0-9]+)".*/\1-\2/' | sort -V | tail -n1)
update_pkgver=${update__rpmversion/-*/}
|