Ticket #650 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

paludis.Generator.Repository('gentoo') with FilteredGenerator returns installed repo pkgs

Reported by: betelgeuse Owned by:
Priority: Sometime Milestone:
Component: bindings/python Version: 0.30.0
Keywords: Cc:
Blocked By: Blocking:
Distribution: Gentoo

Description

#!/usr/bin/python
# vim: set sw=4 sts=4 et tw=80 :

import paludis
paludis.Log.instance.log_level = paludis.LogLevel.WARNING

env = paludis.EnvironmentFactory.instance.create('')

import sys
verbose = "-v" in sys.argv
build_only = "-b" in sys.argv

formatter = paludis.StringifyFormatter()
repo = paludis.Generator.Repository('gentoo')
fg = paludis.FilteredGenerator(repo, paludis.Filter.All())
for pkg in env[paludis.Selection.AllVersionsUnsorted(fg)]:
    print pkg

outputs:

betelgeuse@pena /mnt/checkouts/java/scripts $ ./find-ebuild-where-jdk-would-be-switched | head
app-admin/apache-tools-2.2.9::installed
app-admin/eselect-1.0.11-r1::installed
app-admin/eselect-cblas-0.1::installed
app-admin/eselect-ctags-1.5::installed
app-admin/eselect-ecj-0.3::installed
app-admin/eselect-esd-20060719::installed
app-admin/eselect-fontconfig-1.0::installed
app-admin/eselect-news-20080320::installed
app-admin/eselect-oodict-20061117::installed
app-admin/eselect-opengl-1.0.6-r1::installed

Change History

comment:1 Changed 6 years ago by dleverton

  • Status changed from new to closed
  • Resolution set to fixed

311bc92baa06 and 21730a696076

Note: See TracTickets for help on using tickets.