<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.sabayon.org/bugzilla.dtd">

<bugzilla version="4.2.5"
          urlbase="http://bugs.sabayon.org/"
          
          maintainer="lxnay@sabayon.org"
>

    <bug>
          <bug_id>558</bug_id>
          
          <creation_ts>2009-01-08 10:14:00 +0000</creation_ts>
          <short_desc>Portato fails on startup - only on Sabayon</short_desc>
          <delta_ts>2009-02-09 15:54:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Sabayon</product>
          <component>Installed</component>
          <version>Legacy (3.x)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Current Stable</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="René &apos;Necoro&apos; Neumann">gentoo</reporter>
          <assigned_to name="Sabayon Linux Project">sabayonlinux</assigned_to>
          <cc>joost.ruis</cc>

      

      

      

          <long_desc isprivate="0">
            <commentid>1595</commentid>
            <who name="René &apos;Necoro&apos; Neumann">gentoo</who>
            <bug_when>2009-01-08 10:14:54 +0000</bug_when>
            <thetext>I get about 10 mails per day stating, that portato fails (mostly on first startup).

The error log is:

Traceback (most recent call last):
  File &quot;/usr/lib/python2.5/site-packages/portato/gui/windows/main.py&quot;, line 1247, in cb_pkg_list_selection
    self.fill_version_list(self.selCP)
  File &quot;/usr/lib/python2.5/site-packages/portato/gui/windows/main.py&quot;, line 929, in fill_version_list
    packages = system.sort_package_list(system.find_packages(cp, masked=True))
  File &quot;/usr/lib/python2.5/site-packages/portato/backend/portage/system.py&quot;, line 213, in find_packages
    return self.geneticize_list(self._get_set(pkgSet).find(key, masked, with_version, only_cpv), only_cpv or not with_version)
  File &quot;/usr/lib/python2.5/site-packages/portato/backend/portage/system.py&quot;, line 169, in geneticize_list
    return [self.new_package(x) for x in list_of_packages]
  File &quot;/usr/lib/python2.5/site-packages/portato/backend/portage/system_22.py&quot;, line 64, in new_package
    return PortagePackage_22(cpv)
  File &quot;/usr/lib/python2.5/site-packages/portato/backend/portage/package.py&quot;, line 54, in __init__
    self._init_settings(True)
  File &quot;/usr/lib/python2.5/site-packages/portato/backend/portage/package.py&quot;, line 79, in _init_settings
    self._settings.settings.setcpv(self.get_cpv(), mydb = dbapi)
  File &quot;/usr/lib/portage/pym/portage/__init__.py&quot;, line 1968, in setcpv
    for k, v in izip(aux_keys, mydb.aux_get(self.mycpv, aux_keys)):
  File &quot;/usr/lib/portage/pym/portage/dbapi/porttree.py&quot;, line 406, in aux_get
    raise KeyError(mycpv)
KeyError: &apos;app-portage/portato-0.7.5&apos;

Portato version: 0.11.1
Python version: 2.5.2 (r252:60911, Nov 20 2008, 20:10:49) 
[GCC 4.3.2]
Used backend: Portage 2.2_rc14
pygtk: 2.13.0 (using GTK+: 2.14.5)
pygobject: 2.15.4 (using GLib: 2.18.3)



Asking several of the bug filers, it seems to _only_ happen on Sabayon (esp. Live-DVD (4?)). As portato-0.7.5 is ... well ... outdated, I suppose, there might be something wrong with the portage cache.

I&apos;ll look into this later on. Just as a &quot;tracker&quot; bug for the moment.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>1596</commentid>
            <who name="René &apos;Necoro&apos; Neumann">gentoo</who>
            <bug_when>2009-01-08 10:16:24 +0000</bug_when>
            <thetext>Beside the component stating &quot;Live DVD/CD&quot;, it also happens on (freshly) installed systems.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>1607</commentid>
            <who name="René &apos;Necoro&apos; Neumann">gentoo</who>
            <bug_when>2009-01-10 20:13:12 +0000</bug_when>
            <thetext>The problem on the Live DVD is, that there is no portage-tree included. Thus it is quite obvious why portato (and some other related tools) fail.

Solutions: Either include a portage snapshot - or no portage tools at all in the Live DVD.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>1618</commentid>
            <who name="René &apos;Necoro&apos; Neumann">gentoo</who>
            <bug_when>2009-01-14 00:09:18 +0000</bug_when>
            <thetext>This should really get fixed. I spoke to several people, which thought &quot;oh my god - a buggy release. lets look for another distribution&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>1622</commentid>
            <who name="René &apos;Necoro&apos; Neumann">gentoo</who>
            <bug_when>2009-01-14 21:40:08 +0000</bug_when>
            <thetext>Seems to be the same error on install: There is no portage tree existing. Running &quot;emerge --sync&quot; to get one fixed the errors.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>1624</commentid>
            <who name="Joost Ruis">joost.ruis</who>
            <bug_when>2009-01-19 10:49:56 +0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Seems to be the same error on install: There is no portage tree existing.
&gt; Running &quot;emerge --sync&quot; to get one fixed the errors.
&gt; 

You cannot built in an extra check (maybe run once) to check and see if an emerge --sync is needed?


We expect our users todo this after they install Sabayonlinux. Reason to have it like this is to save some extra space on the ISO.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>1625</commentid>
            <who name="René &apos;Necoro&apos; Neumann">gentoo</who>
            <bug_when>2009-01-19 14:00:13 +0000</bug_when>
            <thetext>I now added this check ;)</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>