Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161911 - tabcheck finds problems in the portage source
Summary: tabcheck finds problems in the portage source
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 147007
  Show dependency tree
 
Reported: 2007-01-13 17:08 UTC by Fabian Groffen
Modified: 2007-01-14 23:35 UTC (History)
0 users

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


Attachments
diff to make tabcheck happy (portage_tabcheck.patch,2.87 KB, patch)
2007-01-13 17:09 UTC, Fabian Groffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2007-01-13 17:08:11 UTC
e.g.:

% find . -name "*.py" | xargs ./tabcheck.py 
./tests/portage_dep/test_dep_getcpv.py 15 '\t\tprefix_ops = ["<", ">", "=", "~", "!", "<=", \n'
./tests/portage_dep/test_isjustname.py 13 '\t\tcats = ( "", "sys-apps/", "foo/", "virtual/" )\n'


Reproducible: Always

Steps to Reproduce:
1. run tabcheck
2.
3.




see attached patch for a proposed "fix" that nukes some spaces, where tabs should be IMO.
Comment 1 Fabian Groffen gentoo-dev 2007-01-13 17:09:09 UTC
Created attachment 106819 [details, diff]
diff to make tabcheck happy

see patch as a suggestion on how to make tabcheck happy.
Comment 2 Brian Harring (RETIRED) gentoo-dev 2007-01-13 17:31:51 UTC
python -c 'import tabnanny;tabnanny.check("/usr/lib/portage/pym")' # is a bit easier in the future ;)
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2007-01-13 19:31:25 UTC
(In reply to comment #2)
> python -c 'import tabnanny;tabnanny.check("/usr/lib/portage/pym")' # is a bit
> easier in the future ;)
> 

Tabcheck is run from tarball.sh with pretty much 'constant' arguments, and it checks stuff outside of pym/ (which the tests are not in, I might add ;))

Fixed in svn, btw ;)
Comment 4 Zac Medico gentoo-dev 2007-01-14 23:35:51 UTC
This has been released in 2.1.2.