Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29870 - mirror.py fails to run
Summary: mirror.py fails to run
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-28 22:17 UTC by SpanKY
Modified: 2011-10-30 22:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2003-09-28 22:17:06 UTC
root@vapier 0 root # /usr/lib/portage/bin/mirror.py 
Traceback (most recent call last):
  File "/usr/lib/portage/bin/mirror.py", line 5, in ?
    os.environ["FEATURES"] = os.environ["FEATURES"] + " mirror"
  File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: FEATURES

the simple change is:
old:
    os.environ["FEATURES"] = os.environ["FEATURES"] + " mirror"
new:
    try:
        os.environ["FEATURES"] = os.environ["FEATURES"] + " mirror"
    except:
        os.environ["FEATURES"] = "mirror"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-12-24 13:12:00 UTC
Fixed in cvs