From: "Markus Meier" <maekke@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/maekke:master commit in: scripts/
Date: Sun, 1 Jun 2014 16:13:48 +0000 (UTC) [thread overview]
Message-ID: <1401639415.c37580cd2ae38a5995a28a4e20f1867fb47d594a.maekke@gentoo> (raw)
commit: c37580cd2ae38a5995a28a4e20f1867fb47d594a
Author: Markus Meier <maekke <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 1 16:16:55 2014 +0000
Commit: Markus Meier <maekke <AT> gentoo <DOT> org>
CommitDate: Sun Jun 1 16:16:55 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/maekke.git;a=commit;h=c37580cd
replace subslotted-packages.sh with a python version
---
scripts/subslotted-packages.py | 15 +++++++++++++++
scripts/subslotted-packages.sh | 16 ----------------
2 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/scripts/subslotted-packages.py b/scripts/subslotted-packages.py
new file mode 100755
index 0000000..7d660cd
--- /dev/null
+++ b/scripts/subslotted-packages.py
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+
+from portage.dbapi.porttree import portdbapi
+import subprocess
+
+TREE = "/usr/portage/"
+
+dbapi = portdbapi()
+pkgs = dbapi.cp_all(categories=None, trees=[TREE])
+
+for pkg in pkgs:
+ res = subprocess.call("egrep -q \"SLOT=\\\"?[0-9]*\/\" %s/%s/*.ebuild" % (TREE, pkg), shell=True)
+ if res == 0:
+ print("%s" % pkg)
+
diff --git a/scripts/subslotted-packages.sh b/scripts/subslotted-packages.sh
deleted file mode 100755
index c34ced2..0000000
--- a/scripts/subslotted-packages.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-# find packages with subslots
-
-PORTDIR="${HOME}/cvs/gentoo-x86"
-
-pushd "${PORTDIR}" > /dev/null
-
-for pkg in $(find . -mindepth 2 -maxdepth 2 -type d | sort) ; do
- pushd ${pkg} > /dev/null
- if [[ -n $(find . -name '*.ebuild') ]] ; then
- [[ -n $(egrep "SLOT=\"?[0-9]*\/" *.ebuild) ]] && echo ${pkg/\.\//}
- fi
- popd > /dev/null # ${pkg}
-done
-
-popd > /dev/null # ${PORTDIR}
next reply other threads:[~2014-06-01 16:13 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-01 16:13 Markus Meier [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-10-03 8:59 [gentoo-commits] dev/maekke:master commit in: scripts/ Markus Meier
2015-08-21 16:44 Markus Meier
2015-08-19 17:09 Markus Meier
2015-08-18 20:20 Markus Meier
2015-08-18 20:20 Markus Meier
2015-01-21 16:34 Markus Meier
2014-10-04 10:37 Markus Meier
2014-07-17 18:06 Markus Meier
2014-06-19 18:46 Markus Meier
2014-06-01 16:13 Markus Meier
2014-06-01 16:13 Markus Meier
2013-10-05 19:30 Markus Meier
2013-10-01 19:03 Markus Meier
2013-07-29 22:11 Markus Meier
2013-05-14 18:22 Markus Meier
2013-05-09 13:29 Markus Meier
2012-05-26 10:05 Markus Meier
2011-10-15 12:38 Markus Meier
2011-10-08 23:57 Markus Meier
2011-10-08 23:31 Markus Meier
2011-10-08 23:24 Markus Meier
2011-10-08 23:06 Markus Meier
2011-10-08 12:10 Markus Meier
2011-04-10 21:12 Markus Meier
2011-04-10 20:45 Markus Meier
2011-04-09 12:38 Markus Meier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1401639415.c37580cd2ae38a5995a28a4e20f1867fb47d594a.maekke@gentoo \
--to=maekke@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox