From 016f9ba4fa9664300edeebc2f8f396cf023d5390 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 01:29:17 +0200 Subject: Layman script --- layman.xml | 13 +------------ repos.conf/layman.conf | 6 ------ scripts/layman.sh | 13 +++++++++++++ 3 files changed, 14 insertions(+), 18 deletions(-) create mode 100644 scripts/layman.sh diff --git a/layman.xml b/layman.xml index 2092af5..6d2f000 100644 --- a/layman.xml +++ b/layman.xml @@ -1,5 +1,4 @@ - - + nx Overlay for the NX/FreeNX packages for Gentoo. @@ -22,14 +21,4 @@ https://cgit.gentoo.org/proj/sci.git/atom/ https://github.com/gentoo-science/sci/commits/master.atom - - pypi - python packages - https://pypi.python.org/pypi - - jauhien@gentoo.org - Jauhien Piatlicki - - gs-pypi pypi - diff --git a/repos.conf/layman.conf b/repos.conf/layman.conf index 8b9b9f2..1b2f2e8 100644 --- a/repos.conf/layman.conf +++ b/repos.conf/layman.conf @@ -4,9 +4,3 @@ location = /var/lib/layman/nx layman-type = git auto-sync = No -[pypi] -priority = 50 -location = /var/lib/layman/pypi -layman-type = g-sorcery -auto-sync = No - diff --git a/scripts/layman.sh b/scripts/layman.sh new file mode 100644 index 0000000..1eb7904 --- /dev/null +++ b/scripts/layman.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +repos=$(xmllint -xpath "//repo/name/text()|//repo/source/text()" /etc/portage/layman.xml | xargs -n2) + +layman -d ALL +git checkout -- /etc/portage/repos.conf/layman.conf + +for repo in $(cat /etc/portage/repos.conf/layman.conf | grep -oP "\[\K[^]]*"); do + repo_src=$(echo "$repos" | grep -P "^$repo" | awk '{ print $2 }') + layman -a "$repo_src" +done + +git checkout -- /etc/portage/repos.conf/layman.conf -- cgit v1.2.3