Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29488 - portage.py and emerge mix tabs and spaces, seems to cause import errors
Summary: portage.py and emerge mix tabs and spaces, seems to cause import errors
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 29486
  Show dependency tree
 
Reported: 2003-09-23 22:54 UTC by Jason A. Mobarak (RETIRED)
Modified: 2011-10-30 22:18 UTC (History)
0 users

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


Attachments
emerge patch (emerge.patch,4.59 KB, patch)
2003-09-23 22:58 UTC, Jason A. Mobarak (RETIRED)
Details | Diff
portage.py patch (portage.py.patch,774 bytes, patch)
2003-09-23 22:59 UTC, Jason A. Mobarak (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason A. Mobarak (RETIRED) gentoo-dev 2003-09-23 22:54:48 UTC
portage.py and emerge mix spaces and tabs which python's tabnanny module say
could potentially cause strange errors, I experienced one of the strange errors
with bug 29486.

I think I've fixed this by using the tabnanny module and checking every file
that portage/emerge imports for ambiguous mixtures of tabs and spaces.
Comment 1 Jason A. Mobarak (RETIRED) gentoo-dev 2003-09-23 22:57:35 UTC
Also, in order to fix this I needed to move emergehelp.py from /usr/lib/portage/bin to /usr/lib/python2.2/site-packages -- I did a quick check of all the import statments in portage.py and emerge and I didn't see anything strange but I'm still not sure what's happening with this bug... fixing the whitespace and moving the emergehelp module seems to fix everything though.
Comment 2 Jason A. Mobarak (RETIRED) gentoo-dev 2003-09-23 22:58:37 UTC
Created attachment 18240 [details, diff]
emerge patch
Comment 3 Jason A. Mobarak (RETIRED) gentoo-dev 2003-09-23 22:59:28 UTC
Created attachment 18241 [details, diff]
portage.py patch
Comment 4 Jason A. Mobarak (RETIRED) gentoo-dev 2003-09-23 23:00:20 UTC
Both patches diffed against 2.0.49-r6
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2003-09-26 06:42:25 UTC
Integrated.