From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 95F5F138334 for ; Mon, 13 May 2019 13:39:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53109E0899; Mon, 13 May 2019 13:39:27 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 36642E0899 for ; Mon, 13 May 2019 13:39:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9AC363441EA for ; Mon, 13 May 2019 13:39:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4144A503 for ; Mon, 13 May 2019 13:39:24 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1557753567.089084d36a4fe398cc26948ba25cd50ca1ab1fed.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: TODO.md qsync X-VCS-Directories: / X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 089084d36a4fe398cc26948ba25cd50ca1ab1fed X-VCS-Branch: master Date: Mon, 13 May 2019 13:39:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bc04fbc5-2b2d-4903-8495-0186f1bdfefd X-Archives-Hash: 452e1cb1c72e1993c39cd3a15427cc19 commit: 089084d36a4fe398cc26948ba25cd50ca1ab1fed Author: Fabian Groffen gentoo org> AuthorDate: Mon May 13 13:19:27 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Mon May 13 13:19:27 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=089084d3 qsync: drop qsync is a shell script which isn't distributed and also is out of date simply drop it Signed-off-by: Fabian Groffen gentoo.org> TODO.md | 4 ---- qsync | 48 ------------------------------------------------ 2 files changed, 52 deletions(-) diff --git a/TODO.md b/TODO.md index 58ea4c5..f410f54 100644 --- a/TODO.md +++ b/TODO.md @@ -71,10 +71,6 @@ - newer binpkgs available - newer installed version available -# qsync - -- rewrite to use new repos.conf standard - # qgrep - make it use standard xarray instead of its own buf\_list diff --git a/qsync b/qsync deleted file mode 100755 index 838d997..0000000 --- a/qsync +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -get_portage_var() { - local var=$1 val - [[ -n ${!var} ]] && return 0 - val=$( ( - source /etc/make.globals - source /etc/make.conf - source /etc/portage/make.conf - echo ${!var} - ) 2>/dev/null ) - [[ -n ${val} ]] && export ${var}=${val} && return - export ${var}=$(portageq envvar ${var}) - [[ -z ${!var} ]] && export ${var}=$2 -} -get_portage_var PORTDIR /usr/portage -get_portage_var RSYNC_TIMEOUT 300 -get_portage_var RSYNC_EXCLUDEFROM -get_portage_var SYNC -[[ -z ${SYNC} ]] && echo could not get SYNC var && exit 1 - -add() { RSYNC_OPTS="${RSYNC_OPTS} $@" ; } -RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress ---force --whole-file --delete --delete-after --stats --timeout=${RSYNC_TIMEOUT} ---exclude=/distfiles --exclude=/local --exclude=/packages --progress" -[[ -n ${RSYNC_EXCLUDEFROM} ]] && add --exclude-from="${RSYNC_EXCLUDEFROM}" - -METADATA_ONLY=0 -while [[ -n $1 ]] ; do - x=$1 - shift - case ${x} in - -v|--verbose) add --verbose ;; - -q|--quiet) add --quiet ;; - --metadata) METADATA_ONLY=1 ;; - --) break ;; - *) echo unknown opt "${x}" ; exit 1 ;; - esac -done - -set -x -if [[ ${METADATA_ONLY} -eq 1 ]] ; then - #echo /usr/bin/rsync ${RSYNC_OPTS} "$@" ${SYNC}/profiles ${PORTDIR} - /usr/bin/rsync ${RSYNC_OPTS} "$@" ${SYNC}/metadata/ ${PORTDIR}/metadata/ -else - /usr/bin/rsync ${RSYNC_OPTS} "$@" ${SYNC} ${PORTDIR} || exit 1 - /usr/bin/rsync --progress -a ${PORTDIR}/metadata/cache/ /var/cache/edb/dep${PORTDIR}/ -fi