On Mon, 2005-05-30 at 23:57 -0700, Zac Medico wrote:
> --- Ow Mun Heng <[EMAIL PROTECTED]> wrote:
> >
> > In This case, how would one determine what IUSE
> > values were used for the
> > package said package then? How can one use to view
> > this data?
> >
>
> #!/usr/bin/python
> import sys
> if len(sys.argv)!=2:
> print "usage: %s <tbz2 file>" % sys.argv[0]
> sys.exit(1)
> sys.path = ["/usr/lib/portage/pym"]+sys.path
> import xpak
> mytbz2=xpak.tbz2(sys.argv[1])
> myuse=mytbz2.getfile("IUSE")
> print myuse
Cool
$./g-binary-use.py
usage: ./g-binary-use.py <tbz2 file>
$g-binary-use.py /usr/portage/packages/All/liferea-0.9.1.tbz2
mozilla gtkhtml debug debug
$ emerge -kvp liferea
[binary R ] net-news/liferea-0.9.1 -debug +gtkhtml -mozilla
$ cat /var/db/pkg/net-news/liferea-0.9.1/IUSE
mozilla gtkhtml debug debug
True it does have the USE Flags, but looks to me like it doesn't
actually signify if it's in Use or Not in Use. Meaning, the "+" or "-"
doesn't propagate?
> > Do you know off-hand w/o needing to compile it on
> > one machine (with
> > different use flags) and then use the package on
> > another machine (which
> > has a different USE flag) just to see the
> > difference?
> >
>
> I'm not sure I understand the question. You ant to
> know if the USE flags are different depending on which
> machine the package is compiled on? Can you use the
> above a variation of the above python script?
No..No.. you've already answer the question as above. Only now, can you
answer the 2nd question I have regarding the "+" or "-" and whether the
USE flag is in USE?
> Zac
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new Resources site
> http://smallbusiness.yahoo.com/resources/
--
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
98% Microsoft(tm) Free!!
Neuromancer 15:26:18 up 17:28, 9 users, load average: 0.60, 0.69, 0.76
--
[email protected] mailing list