From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RCgFt-0000r9-3J for garchives@archives.gentoo.org; Sat, 08 Oct 2011 23:24:33 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CD5521C0D3; Sat, 8 Oct 2011 23:24:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4063D21C0D3 for ; Sat, 8 Oct 2011 23:24:25 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C10181B4010 for ; Sat, 8 Oct 2011 23:24:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 2F16980042 for ; Sat, 8 Oct 2011 23:24:24 +0000 (UTC) From: "Markus Meier" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Markus Meier" Message-ID: <49d0de17cb97fe8b15e40a254a792d5d65c52026.maekke@gentoo> Subject: [gentoo-commits] dev/maekke:master commit in: scripts/ X-VCS-Repository: dev/maekke X-VCS-Files: scripts/rdep X-VCS-Directories: scripts/ X-VCS-Committer: maekke X-VCS-Committer-Name: Markus Meier X-VCS-Revision: 49d0de17cb97fe8b15e40a254a792d5d65c52026 Date: Sat, 8 Oct 2011 23:24: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 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 0cfacb2764577010e016192e50d99fe2 commit: 49d0de17cb97fe8b15e40a254a792d5d65c52026 Author: Markus Meier gentoo org> AuthorDate: Sat Oct 8 23:25:20 2011 +0000 Commit: Markus Meier gentoo org> CommitDate: Sat Oct 8 23:25:20 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/maekke.git;a=3D= commit;h=3D49d0de17 strip the pkg argument (leading =3D and version numbers) --- scripts/rdep | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/scripts/rdep b/scripts/rdep index cc66630..bf0688f 100755 --- a/scripts/rdep +++ b/scripts/rdep @@ -17,6 +17,8 @@ fi =20 arch=3D"${1}" pkg=3D"${2}" +pkg=3D"${pkg/=3D/}" +pkg=3D"${pkg/-[0-9]*/}" =20 if [[ ! -d ${REPODIR} ]]; then echo "your \${REPODIR}=3D'${REPODIR}' does not exist." @@ -35,7 +37,8 @@ if [[ $(egrep "\<${arch/\~/}\>" ${REPODIR}/profiles/arc= h.list | wc -l) =3D=3D 0 ]]; fi =20 if [[ ! -d ${REPODIR}/${pkg} ]]; then - echo "invalid package ${pkg} - do not use a version-number" + echo "package ${pkg} not found" + exit 1 fi =20 tmp=3D"$(mktemp)"