From a2801d087415e0da6b06877e609a75029829d581 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 01:44:35 +0200 Subject: Fix layman script --- scripts/layman.sh | 13 ------------- scripts/layman_reinit.sh | 13 +++++++++++++ 2 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 scripts/layman.sh create mode 100644 scripts/layman_reinit.sh (limited to 'scripts') diff --git a/scripts/layman.sh b/scripts/layman.sh deleted file mode 100644 index 1eb7904..0000000 --- a/scripts/layman.sh +++ /dev/null @@ -1,13 +0,0 @@ -#! /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 diff --git a/scripts/layman_reinit.sh b/scripts/layman_reinit.sh new file mode 100644 index 0000000..64d14d0 --- /dev/null +++ b/scripts/layman_reinit.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" -O "$repo_src" +done + +git checkout -- /etc/portage/repos.conf/layman.conf -- cgit v1.2.3