Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121584 - OS check in portage_data.py fails to detect GNU/kFreeBSD
Summary: OS check in portage_data.py fails to detect GNU/kFreeBSD
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All GNU/kFreeBSD
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 200044
  Show dependency tree
 
Reported: 2006-02-04 12:52 UTC by Robert Millan
Modified: 2007-12-30 17:31 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 Robert Millan 2006-02-04 12:52:28 UTC
The "gnu" should be looked for in the beginning of the string, not the end.

--- /usr/lib/portage/pym/portage_data.py.old    2006-02-04 21:37:42 +0000
+++ /usr/lib/portage/pym/portage_data.py        2006-02-04 21:37:52 +0000
@@ -11,7 +11,7 @@
 ostype=os.uname()[0]

 lchown = None
-if ostype=="Linux" or ostype.lower().endswith("gnu"):
+if ostype=="Linux" or ostype.lower().startswith("gnu"):
        userland="GNU"
        os.environ["XARGS"]="xargs -r"
 elif ostype == "Darwin":
Comment 1 Zac Medico gentoo-dev 2007-12-30 17:31:09 UTC
This has been released in 2.1.4_rc12.