Re: rfc: python2.7 for F14

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux