rfc: python2.7 for F14
James Antill
james at fedoraproject.org
Wed Jun 23 04:57:00 UTC 2010
On Tue, 2010-06-22 at 23:26 +0200, Thomas Spura wrote:
> How about this?
> """
> import os
>
> p = set()
>
> for pkg in os.popen('repoquery --whatrequires --alldeps "python(abi) =
> 2.6"'):
> pkg = pkg.strip()
> print "Checking %s" % pkg
> p.add(os.popen('repoquery -s %s' % pkg).read().strip())
>
> print p
> """
Wow, python calling python through /bin/sh! I bow before you sir.
You could just do:
#! /bin/sh
repoquery --whatrequires --alldeps -s "python(abi) = 2.6" | sort -u
More information about the devel
mailing list