diff options
author | Richard Purdie <richard@openedhand.com> | 2007-09-02 14:10:08 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-09-02 14:10:08 +0000 |
commit | e223238b1b88c9b6888972b7944b3854319e4928 (patch) | |
tree | ae78533078bd8e7382d50778cec144541eae65f6 /bitbake/lib/bb/__init__.py | |
parent | 1cf731b1e3bb125449c2ef4e1194b6bf69e7b667 (diff) | |
download | openembedded-core-e223238b1b88c9b6888972b7944b3854319e4928.tar.gz openembedded-core-e223238b1b88c9b6888972b7944b3854319e4928.tar.bz2 openembedded-core-e223238b1b88c9b6888972b7944b3854319e4928.zip |
bitbake: Update to latest bitbake-1.8 branch
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2651 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/__init__.py')
-rw-r--r-- | bitbake/lib/bb/__init__.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py index 77b1255c77..0460c96ff4 100644 --- a/bitbake/lib/bb/__init__.py +++ b/bitbake/lib/bb/__init__.py @@ -283,10 +283,11 @@ def decodeurl(url): raise MalformedUrl(url) user = m.group('user') parm = m.group('parm') - m = re.compile('(?P<host>[^/;]+)(?P<path>/[^;]+)').match(location) - if m: - host = m.group('host') - path = m.group('path') + + locidx = location.find('/') + if locidx != -1: + host = location[:locidx] + path = location[locidx:] else: host = "" path = location |