Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381601 - app-portage/smart-live-rebuild-1.2: calls emerge even when no updates found
Summary: app-portage/smart-live-rebuild-1.2: calls emerge even when no updates found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-02 18:49 UTC by Paul Varner (RETIRED)
Modified: 2011-12-11 18:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
0001-Fix-Bug-381601-python-3-incompatibility.patch (0001-Fix-Bug-381601-python-3-incompatibility.patch,912 bytes, patch)
2011-09-02 19:39 UTC, Paul Varner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Varner (RETIRED) gentoo-dev 2011-09-02 18:49:39 UTC
# smart-live-rebuild
*** Updating the repositories using 6 parallel jobs...
->  git://git.overlays.gentoo.org/proj/gentoolkit.git [gentoolkit]
--> git ls-remote --heads git://git.overlays.gentoo.org/proj/gentoolkit.git gentoolkit
->  git://git.overlays.gentoo.org/proj/layman.git [master]
--> git ls-remote --heads git://git.overlays.gentoo.org/proj/layman.git master
->  git://github.com/fuzzyray/esearch.git [master]
--> git ls-remote --heads git://github.com/fuzzyray/esearch.git master
->  [app-portage/gentoolkit:0] git://git.overlays.gentoo.org/proj/gentoolkit.git [gentoolkit]
--> at rev 92e6be628307b0643307202ba9994cab9a4dd439 (no changes)
->  [app-portage/layman:0] git://git.overlays.gentoo.org/proj/layman.git [master]
--> at rev de32dea6179e96cb5b7fa1088134a41f4e78fa9b (no changes)
->  [app-portage/esearch:0] git://github.com/fuzzyray/esearch.git [master]
--> at rev e2d7c244b78f0661836c088246c3a2e3d2678333 (no changes)
*** No updates found
->  emerge --oneshot
emerge: the other white meat (command-line interface to the Portage system)
Usage:
   emerge [ options ] [ action ] [ ebuild | tbz2 | file | @set | atom ] [ ... ]
   emerge [ options ] [ action ] < system | world >
   emerge < --sync | --metadata | --info >
   emerge --resume [ --pretend | --ask | --skipfirst ]
   emerge --help [ --verbose ] 
Options: -[abBcCdDefgGhjkKlnNoOpPqrsStuvV]
          [ --color < y | n >            ] [ --columns    ]
          [ --complete-graph             ] [ --deep       ]
          [ --jobs JOBS ] [ --keep-going ] [ --load-average LOAD            ]
          [ --newuse    ] [ --noconfmem  ] [ --nospinner  ]
          [ --oneshot   ] [ --onlydeps   ]
          [ --reinstall changed-use      ] [ --with-bdeps < y | n >         ]
Actions:  [ --depclean | --list-sets | --search | --sync | --version        ]

   For more help try 'emerge --help --verbose' or consult the man page.
Comment 1 Paul Varner (RETIRED) gentoo-dev 2011-09-02 19:04:05 UTC
It's a python 3.2 issue, i.e it works with 2.6, 2.7, and 3.1.  Apparently "not filter(lambda a: not a.startswith('-'), args)))" in cli.py is always evaluating to False with python 3.2
Comment 2 Paul Varner (RETIRED) gentoo-dev 2011-09-02 19:08:50 UTC
I lied about it working in python 3.1.  I forgot to switch python from 2.7 to 3.1 when testing.  So it is a python 3 issue.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2011-09-02 19:39:43 UTC
Created attachment 285377 [details, diff]
0001-Fix-Bug-381601-python-3-incompatibility.patch

Patch to fix the problem.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-09-02 19:41:03 UTC
Yeah, indeed iterator in Python3 doesn't support bool().

[master b3c8572] Fix lack of bool() for filter() in Python3.
 1 files changed, 1 insertions(+), 1 deletions(-)

Please try now.https://bugs.gentoo.org/show_bug.cgi?id=381601#
Comment 5 Paul Varner (RETIRED) gentoo-dev 2011-09-02 19:52:19 UTC
Both fixes work, but I think I like yours better since the list doesn't have to be fully created to test it.