Chris Larson
3beecc66e9
Fix the silent exit when the specified task doesn't exist
...
(Bitbake rev: 2b64afa107dc24db510d0001b6eb58f0d5913d2f)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Chris Larson
7e53a3b5cf
Move the output of no provider and multiple provider messages into the UI
...
(Bitbake rev: 36b980c16bf74b3c2066cc120f9f27e11f189a63)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Chris Larson
1b6af2787e
Make knotty ignore the NoProvider event
...
(Bitbake rev: e07f759dae96c0819c35bb67e1da18ca361bb584)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Chris Larson
4fac507dfb
Don't tell the user we're sending SIGINT to the remaining 0 tasks
...
(Bitbake rev: 0b963e52eca0447d5bbfc87d826ad662fe940381)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Bernhard Reutner-Fischer
186f857466
cooker: use time.strftime() instead of spawing sh with date
...
time.strftime() defaults to using time.localtime(), use that instead
of spawning "sh -c 'date +<FMT>'"
(Bitbake rev: ec1f2773b4811b3beb52710120bb5a9b215c174e)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Bernhard Reutner-Fischer
16553b8826
cache: do not chdir unnecessarily
...
previously we called chdir() twice for every target, this patch reduces
the amount of chdir() calls via openembedded master from some 16000 to
4.
(Bitbake rev: fa45f5625e13a82bec70d5f10815f52fbe705166)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Bernhard Reutner-Fischer
726802b980
persist_data: cache connection and use cursor
...
Store database connection to persistent database in fetcher.
(Bitbake rev: 8a6876752b90efd81d92f0947bfc9527d8260969)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Bernhard Reutner-Fischer
30216c65e5
cache: use a set() for __depends
...
to make updating depends easier/more intuitive/eventually faster
(Bitbake rev: f7c69462b8ba726861898817cc5b13174c78e35a)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Bernhard Reutner-Fischer
cf79cf127b
cache: use max() to determine newest_mtime
...
(Bitbake rev: c0cf85beda4cf8748fd270c037442cde7b98146b)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Bernhard Reutner-Fischer
81d13cbebe
cache: use os.path ops instead of stat
...
(Bitbake rev: 09fe0d403c75229931c10eabc7eecc0dc60058fe)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Chris Larson
9d32ff0c87
Make the file not found error actually useable.
...
(Bitbake rev: 1cfcbee014478eb129ed382c13622317412b036e)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Bernhard Reutner-Fischer
85ca18f60a
fetch: commentary typo fix in fetcher_init()
...
(Bitbake rev: b786f1f60fb50565295e7c8e979b471327d924f3)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Bernhard Reutner-Fischer
6c37c32773
cache: fix typo in error message of cacheValidUpdate()
...
(Bitbake rev: 9937d5992d72104c670e069f4c46cc62a490e18f)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:35 +01:00
Bernhard Reutner-Fischer
a7ad7cfb2f
fetch: documentation typo fix
...
s/initilize/initialize/
(Bitbake rev: 1497dd0d5bc0cca0de7d0ee9d314287000a0c34d)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Khem Raj
f7e6c5ad2b
fetch: Check for existence of tar file along with md5 signature
...
(Bitbake rev: a5b1c0605328660de15bb8127b6f7d798c664d32)
Signed-off-by: Khem Raj <raj.khem@gmail.com >
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
50006b49fc
Revert "In expand, drop the unnecessary second regular expression match"
...
This reverts commit 05462fa7908fc22988b3dc9d376798d0a46ccb5a.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
d217bedd32
Don't emit vars starting with __, as those are internal
...
(Bitbake rev: 211f44ce0e15c7c419606e9ef3568d9cea6775b7)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
d00b54b948
In expand, drop the unnecessary second regular expression match
...
(Bitbake rev: 05462fa7908fc22988b3dc9d376798d0a46ccb5a)
Signed-off-by: Imran Mehmood <imran_mehmood@mentor.com >
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
e07a5b1909
Simplify _findVar a bit
...
(Bitbake rev: b017acd39b811a00305002a8044e7d02e79f41d7)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
66d66cb487
Fix major bug that slipped in when moving update_data
...
The root cause is, I was testing the use of renameVar() from finalize, in
order to get flags copied over when an override is applied, but renameVar
removes the original, whereas the old code did not do so. Going back to the
old method, will revisit the override/flags later on.
(Bitbake rev: 2f7c498abcf675e5b8de197d8056a0581670c2bd)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
4802a9d07a
Move a var definition in cooker.parse_next
...
(Bitbake rev: 1b378ddf3dc9b2aa5384e8b28945b63fc623a6a4)
Signed-off-by: Chris Larson <clarson@kergoth.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
8bc7ebb4ae
Enhance the expansion exception message
...
(Bitbake rev: 1cc11164a85a5b30d6b9184cb5a8f7f7ac1aaff2)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
1e7a03cb58
For ${@}, run str() on the result
...
(Bitbake rev: cf1a51eab11f645c95e5fa278221f78c129b9dd1)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
15248f3e7d
Allow emission of non-string objects in emit_var, instead running str() on it first
...
(Bitbake rev: 5b09e28cb4a2c6c99ad58e71fb803160922a7e1e)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
9d3f301423
emit_env: clean up, iterate once
...
(Bitbake rev: db718ec6f67c7c0d0efb4ba0b5b24384f707dcf5)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
c3eae29efa
Don't try to expand non-string values
...
(Bitbake rev: fe36a726b9f930bbd6fd758c0aee78559e95f02b)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
214d1f7433
Move the python version check into the python package
...
This ensures the check is run for anyone using the package, including
setup.py, though it's sad that it's necessary, since all it really wants is
__version__.
Ideally, we'd avoid the version check entirely in favor of checking for
functionality, but that's rather difficult with language constructs like
context managers, so this'll do for now.
(Bitbake rev: f936f1c0edf70860ea0f39ec1a500ba43b56f289)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
bdbeaf4760
Bump version to 1.11.0
...
(Bitbake rev: 6c89c332664a7789d02a701e7e530838ab778264)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:34 +01:00
Chris Larson
c04cee7ce8
Search up the directory tree for bblayers.conf
...
(Bitbake rev: 1c6b31c649474b4c2b63ef9d9311e61de20bc8c2)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
3238125138
Add a hack to avoid the req that all vars using LAYERDIR be immediately expanded
...
See the comment in the code for details.
(Bitbake rev: 849dbd63244cbc4eaca0f1beedbb67baca024629)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
dc39ebe91e
Move the unset BBPATH sanity check after the bblayers processing
...
This way we can fully utilize bblayers, you can do everything in bblayers.conf
and avoid setting any environment variables at all.
(Bitbake rev: 5def1c8c31432968349f9b29d6333d7962260a8b)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
22a2179905
Kill unnecessary usages of the types module
...
types.IntType -> int
types.StringType -> basestring
...
Also moves our ImmutableTypes tuple into our own namespace.
(Bitbake rev: 83674a3a5564ecb1f9d2c9b2d5b1eeb3c31272ab)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
1180bab54e
Apply some 2to3 transforms that don't cause issues in 2.6
...
(Bitbake rev: d39ab776e7ceaefc8361150151cf0892dcb70d9c)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
5b216c8000
Add __contains__ to COWDictMeta
...
(Bitbake rev: b3b314aade1f0a04e888361e1ac946e5195e1509)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
d5927a70bb
Drop unused bb.data.expandData function
...
(Bitbake rev: 188af3ef5fdb5cd86b74147bf5eafc085ac489be)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
bcd9c57a96
Switch some references to moved functions
...
(Bitbake rev: ddea2978cb969cf1381cfee5c055de0c9e56a4e3)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
c770c62fdc
Add a missing import of print_function
...
(Bitbake rev: 30ae747cc5c733512e417c61fca23c0cd15b0e44)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
ad543e2e41
Apply the 2to3 print function transform
...
(Bitbake rev: ff2e28d0d9723ccd0e9dd635447b6d889cc9f597)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
978b5c9466
Deprecate the usage of certain objects via certain modules
...
As an example, this displays a deprecation warning for the use of
"bb.encodeurl" when you should be using "bb.fetch.encodeurl". It includes a
convenience function for this purpose. It should be of use when moving
objects between modules permanently, changing the API the user sees.
(Bitbake rev: 78f56049ba863b2e585b89db12b32697eb879bbc)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
cbc8140c77
Exception handling fixups
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
cf58d41af8
Add some missing docstrings
...
(Bitbake rev: 20b6f2d1d2d4541e612e8cffbdf1ca4822a3e394)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
0b4ad7062b
Drop __all__ usage
...
(Bitbake rev: b4983cc7bfe5300c1d2904f34fb03d4fb2f41d90)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:33 +01:00
Chris Larson
266f416446
Drop some unused functions
...
(Bitbake rev: eb83df5bc7077685f314df01949cf06850e4693c)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:32 +01:00
Chris Larson
bbc565e825
Drop some unused classes
...
(Bitbake rev: 5cc47a49518c69c94f8b78e9dda6d542ba17b1e8)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:32 +01:00
Chris Larson
51f5346f29
Drop some unused vars
...
(Bitbake rev: b79ca5f1cc2d262de877047769ce25279ba26672)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:32 +01:00
Chris Larson
1c74fd768f
Import fixups
...
(Bitbake rev: 4fa052f426e3205ebace713eaa22deddc0420e8a)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:32 +01:00
Chris Larson
7acc132cac
Formatting cleanups
...
(Bitbake rev: 2caf134b43a44dad30af4fbe33033b3c58deee57)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:32 +01:00
Chris Larson
bbf83fd988
Drop doctest, as we aren't utilizing it
...
We should add back in some proper unit testing. Doctest is rather limited,
and we haven't actually made use of it since the original implementation of
the datastore when the project started, as far as I'm aware.
(Bitbake rev: 3a11c2807972bbbddffde2fa67fc380d159da467)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:32 +01:00
Chris Larson
8306ba50db
Don't run metadata event handlers for bb.msg events
...
(Bitbake rev: 297305b3742323d09d9ca58e958c4f18e945a148)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:32 +01:00
Chris Larson
6623d79ada
Stop using functions via 'bb' that were moved from there to other modules
...
(Bitbake rev: 03a6c26f8da226f442c3cab557e4733f7cd6eeac)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:32 +01:00