Holger Freyther
242a03607d
bitbake: [parser] Kill obtain/localpath from the parser
...
With obtain it was possible to use an existing fetcher to
download a bb or config file. In practive no one has used it
and it was likely broken in regard to depends_cache... Remove
it for now, simplfiy the code.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-02-10 16:31:19 +00:00
Joshua Lock
52cbb07423
bitbake: fix invalid method and logic
...
The previous bitbake change included an invalid method call and inverted logic.
Signed-off-by: Joshua Lock <josh@linux.intel.com >
2010-02-05 12:41:08 +00:00
Joshua Lock
ec92133d6f
bitbake: Test premirrors and mirrors in checkstatus()
...
checkstatus() is used to ensure we can fetch a copy of each file, so it makes
sense to also test PREMIRRORS and MIRRORS in the method.
This patch adds calls to try_mirrors() to the Fetch.checkstatus() method and
changes the try_mirrors() method to take a check argument, which is False by
default. When check is True try_mirrors() will call a fetchers checkstatus()
with the replaced uri.
Signed-off-by: Joshua Lock <josh@linux.intel.com >
2010-02-05 12:19:05 +00:00
Joshua Lock
c9fd126f64
bitbake: Fix try_mirrors() logic, was only trying the first mirror.
...
The logic in try_mirrors() was buggy such that only the first entry in the
mirrors list was tried.
This patch fixes this. Thanks to Richard for the review.
Signed-off-by: Joshua Lock <josh@linux.intel.com >
2010-02-04 14:08:34 +00:00
Joshua Lock
afe12428a9
bitbake: if PREMIRRORS set test for local file in FetchData.setup_localpath
...
When we are using PREMIRRORS it's possible a mirror in the local namespace
(some filesystem path, i.e. an NFS share) provides read-only files.
This is a perfectly valid scenario so this patch fixes bitbake so that for
such a scenario locapath is set to the files path rather than some child
of DL_DIR.
Signed-off-by: Joshua Lock <josh@linux.intel.com >
2010-02-04 00:18:29 +00:00
Joshua Lock
b571168ac7
bitbake: Enhance the fetchers' support for local mirrors
...
Modify the try_mirrors() function to return the localpath of the fetched file
and update the data dictionary to reflect this.
Secondly the metadata files, lock and md5, should always be stored relative to
the ${DL_DIR} as it is possible that the localpath is a read-only directory,
for example in the scenario where there is a read-only file:// mirror.
Signed-off-by: Joshua Lock <josh@linux.intel.com >
2010-02-04 00:18:29 +00:00
Joshua Lock
0737552c1d
bitbake: unify mirror support and make it independant of the fetcher
...
This patch serves two purposes. Firstly it unifies the concept of mirrors into
PREMIRRORS and MIRRORS. PREMIRRORS are tried before the SRC_URI defined in the
recipe whereas MIRRORS are tried only if that fails.
The tarball stash was conceptually inline with a PREMIRROR only with special
handling within the wget fetcher and therefore only worked with certain
fetch types.
Secondly the patch removes the need for individual fetch implementations to
worry about mirror handling.
With this patch, the base fetch implementation will first try to use a
PREMIRROR to fetch the desired object, if this fails the native fetch method
for the object will be tried and if this fails will try to fetch a copy from
one of the MIRRORS.
Signed-off-by: Joshua Lock <josh@linux.intel.com >
2010-02-04 00:18:29 +00:00
Richard Purdie
fdf134abfb
bitbake/build.py: No need for this gross hack now
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-27 12:40:02 +00:00
Richard Purdie
b9d958c186
bitbake: Don't import xmlrpc server unless needed
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-22 16:15:50 +00:00
Richard Purdie
7e8025459e
bitbake/cooker: Drop unneeded import
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-22 00:04:18 +00:00
Richard Purdie
5ebad0d500
knotty: Improve task failure message handling using the uihelper code
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-21 23:49:17 +00:00
Richard Purdie
5c62833766
runqueue.py: Use fcntl to make the worker pipes non-blocking
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-21 23:46:20 +00:00
Richard Purdie
fd42ffa273
bitbake/event: If the server disappears, we just exit too
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-21 16:00:12 +00:00
Richard Purdie
d7c9b7d8b9
runqueue: When a task fails, make sure the server still processes events from other workers
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-21 15:58:56 +00:00
Richard Purdie
867b01c3ca
bitbake/__init__.py: Fix bb.plain and bb.warn function, initial patch from Petri Lehtinen <petri.lehtinen+bitbake-dev@inoi.fi>
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-21 10:44:34 +00:00
Martin Jansa
c69797d89c
bitbake/git: remove repodir usage (from bitbake master)
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-21 10:30:37 +00:00
Richard Purdie
573f6125e6
bitbake/runqueue: Fix typo
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-21 10:25:54 +00:00
Richard Purdie
22c29d8651
bitbake: Switch to bitbake-dev version (bitbake master upstream)
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-20 18:46:02 +00:00
Richard Purdie
cf91cfaaa2
bitbake: Apply modified version of a patch from Martin Jansa <martin.jansa@gmail.com> to allow wildcards at the end of PREFERRED_VERSION strings
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-12 20:31:18 +00:00
Richard Purdie
9f5e04a04b
taskdata.py: Improve error message if a task dependency has an incorrect format
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-12-18 11:41:44 +00:00
Richard Purdie
dbd66fc808
bitbake/BBHandler: Only add do_ prefix to tasks if its not already present
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-12-18 11:41:44 +00:00
Richard Purdie
459861b9c0
bitbake/data_smart.py: Fix error where update-rc.d would not get added to the dependency tree
...
If there was a variable such as:
X_${Y}_append = "Z"
The "Z" would be lost if X_${Y} was unset. This was due to a bug in the renameVar
function used by expandKeys().
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-12-16 08:39:47 +00:00
Richard Purdie
1183aff5e9
bitbake/git.py: Typo fix
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-12-11 17:20:06 +00:00
Richard Purdie
b80f6d8ac4
bitbake/git.py: Add support for fullclone parameter
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-12-11 17:12:53 +00:00
Richard Purdie
a94737f611
bitbake/git.py: Move variable init into the localpath function
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-12-11 17:12:53 +00:00
Richard Purdie
cb8684f9bc
bitbake/cooker.py: Fix handling of extra configuration files
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-12-11 12:48:49 +00:00
Richard Purdie
c02e38901b
git.py: Improve command failure error messages
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-12-11 12:48:14 +00:00
Richard Purdie
011557c157
bitbake: Fix dict changing size problems
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-11-26 22:45:52 +00:00
Richard Purdie
b5a059ff28
fetch/__init__.py: Try and make the sortable_revision code mode readable
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-11-13 12:15:23 +00:00
Richard Purdie
483f85802a
bitbake: Sync various functions with those from bitbake-dev and bitbake upstream
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-11-13 12:15:21 +00:00
Richard Purdie
c2b5a61728
bitbake: Sync module import cleanups back from bitbake trunk
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-11-13 12:15:21 +00:00
Richard Purdie
1fd3265374
build.py: Fix zero size logfile problems
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-11-13 12:15:21 +00:00
Richard Purdie
f310816acb
bitbake: hg fetcher - sync bitbake-dev and remove debug
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-10-20 11:29:07 +01:00
Richard Purdie
717d71b8e9
bitbake: Add hg fetcher auto revisioning, patch from Carl Simonson <simonsonc@gmail.com>
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-10-19 17:46:09 +01:00
Richard Purdie
ac4d25c89a
bitbake: Fix svk fetcher
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-10-17 21:07:40 +01:00
Richard Purdie
7642529554
bitbake: Anonymous funciton improvements - use methodpool to allow cached code and remove anonymous function indentation mismatch problems
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-10-13 08:38:13 +01:00
Richard Purdie
44549775eb
bitbake: Add bb and os to __builtins__, not the exec function global
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-10-13 08:38:13 +01:00
Richard Purdie
74016daa3a
bitbake: Remove unused and hence pointless internal__functions__ variable
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-10-13 08:38:13 +01:00
Richard Purdie
d326382b5f
bitbake/build.py: Remove zero sized log files
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-09-24 18:57:09 +01:00
Richard Purdie
bec200b38d
bitbake/cache.py: Add warnings for leakage of SRCREVINACTION magic value
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-09-24 18:57:09 +01:00
Richard Purdie
8138603680
bitbake/fetch: Ensure SRCREVINACTION always resets the core flags even when parsing failes by using a try/finally
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-09-24 18:57:08 +01:00
Richard Purdie
bc0b233c02
bitbake cache: Add code to catch a nasty cache corruption issue to aid in tracking it down
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-09-03 22:57:26 +01:00
Mike Turquette
59040b5d14
__init__.py: export GIT_PROXY_COMMAND for those behind draconian proxies
...
Signed-off-by: Mike Turquette <mturquette@ti.com >
2009-08-26 10:56:53 -05:00
Richard Purdie
433c2d2318
bitbake: Remove persist_data domain renaming code as it appears to expose sqlite bugs and data consistency issues
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-07-30 21:24:31 +01:00
Richard Purdie
ef9c095334
bitbake: Make sure tables exist when renaming
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-07-30 18:03:51 +01:00
Richard Purdie
64b04685b6
bitbake: Add a --revisions-changed commandline option to indicate when floating srcrevs have changed
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-07-29 14:33:14 +01:00
Richard Purdie
231b5f6784
bitbake: Add renameDomain and getKeyValues functions to the persistent data code
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-07-29 14:10:11 +01:00
Richard Purdie
a6d608eb19
bitbake runqueue: Add a minor speedup to the runqueue code
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-07-29 14:08:05 +01:00
Richard Purdie
699ad056d9
bitbake: Make sure regexp patterns are consistent in providers.py
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-07-23 16:20:02 +01:00
Richard Purdie
d02379d2df
bitbake: Add a cache around PACKAGES_DYNAMIC regexps to help performance a bit
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-07-23 15:59:17 +01:00