Richard Purdie
14df571486
bitbake: Fix handling of empty variables in local config files
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
04b2a78837
Add a warning if a BBFILE_PATTERN doesn't match any bb files
...
Likely cause is, of course, typo in the pattern or incorrect BBFILES, so we
should warn the user about this.
(Bitbake rev: b781317b5006bc047a59e7fa3c93344115e78ccb)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
ecbd5ca720
3.0 prep
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
ef1de9ecaf
Apply some 2to3 refactorings
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
20dc452614
Drop a couple usages of readlines
...
(Bitbake rev: 40925230781ddd550bf21d90714c5349f9240a51)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
b9f8af16f4
Until the interactive mode is fixed, kill it from the valid options, to avoid confusion
...
(Bitbake rev: 65a51bb20677148a29b9e472f6d9d0a97798f024)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
aa538a405e
Fix syntax error in shell.py
...
(Bitbake rev: 1bddc77268e57e236c274fd91c889ea00a13891b)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
fe9172ed55
Add missing 'return False' to the SystemExit handler in runAsyncCommand
...
(Bitbake rev: 966490c555cbdc09f52e1dcc68d3772c28ad9cee)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
526837e1c1
Move serverConnection.terminate() back into the finally
...
(Bitbake rev: 58e1b0a5dbd0f1ca137ad7ed1bd7ad9975a20fb7)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
2f0a485bd4
Limit the traceback length in the default exception handler
...
(Bitbake rev: 2b9dc5b55e24b4946ff03bf30ca52a48547caaad)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:37 +01:00
Chris Larson
56f083ad13
Switch from our own 'dummywrite' class to StringIO
...
(Bitbake rev: f5b7e16adf86950d91a88a343031e71beb0f08a6)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
6be4fa575a
Switch a fatal usage to SystemExit ("T" not set)
...
This failure is one the *user* needs to see, as it may have to do with their
setup, but where they don't need to see a traceback and all, since they're not
developers, so I think SystemExit is appropriate here.
(Bitbake rev: e3cc9bc7b6ef1a2eca78235790a051329bceb9a4)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
ce42c24d70
Resurrect the excepthook, this time just sending the info with bb.fatal
...
(Bitbake rev: 07757a1bf1129cc6a967a7cf1815d3d46a6bbdcf)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Cliff Brake
6c338660e8
remove return in finally statement
...
causes exceptions to not be handled after the finally statement
(Bitbake rev: 1a04610dea376340b9ea4c109f64995b4fd6ad02)
Signed-off-by: Cliff Brake <cbrake@bec-systems.com >
Signed-off-by: Chris Larson <clarson@kergoth.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
39f6ec5f63
cooker: Kill __getitem__ usage on exception objects (python 3 prep)
...
(Bitbake rev: 1239df8b82ddcd607630da5a888ca83051a22fa8)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
ef835bf33a
Handle SystemExit and KeyboardInterrupt sanely when executing a command
...
(Bitbake rev: 17f40d036814e4abf6d87363fff7823c8c85c298)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
562fd5f2a7
Drop unnecessarly duplicated messages wrt FuncFailed
...
(Bitbake rev: 9ec9c0e560d4fa6df74a90f598f9db92713525a2)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
6092312acc
knotty: use the future division to prep for 3.x
...
(Bitbake rev: bd0edc19f691146e748b91255be7a5788a070de6)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
8a9a4748c9
Kill the unnecessary setVarFlag debugging message
...
(Bitbake rev: ef8475796fbab4f76a72bbc106da4c35e3afe2e1)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
dabe4a3943
knotty: stop freaking out and dying when bb.build has removed the empty logfile
...
(Bitbake rev: 2197182fe5837d74f1499c644e882e87cf035238)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
e886ec2a2b
Use bb.utils.mkdirhier in bb.cache to shut up the pending deprecation warning
...
(Bitbake rev: 0c885752d69e4108e2960d59ec1bd6c911dd141a)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
8f9bdd68de
Use PendingDeprecationWarning for functions moved from bb to bb.utils
...
This is necessary, as there has not yet been a release with the bb.utils
versions in place. We can't show them a deprecation warning when they can't
safely change it yet. Show a PendingDeprecationWarning until 1.10 releases
and OE requires it, then we can move to DeprecationWarning.
(Bitbake rev: 43700fa1ca1d2635de4ed46110057cb164ee82d1)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
0c5b5b21f7
Start ditching fatal() calls in favor of raising appropriate exceptions
...
(Bitbake rev: 681b73fcc04e22e692ed61650ad53c800b64cace)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
77a6052e39
Drop the non-debug traceback suppressor, at this point I think it does more harm than good
...
(Bitbake rev: 2c66ddc2713061ba31363ea69c24944f4a7cd3a8)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Ryan Phillips
40d7de8f06
Change wget fetcher to use the runfetchcmd
...
* Fixes proxy support to honor standard proxy environment variables.
* Quote environment variables
(Bitbake rev: f84f382f340d6db15b9e5afb8c7c93969249a958)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Chris Larson
88a257634a
Show a traceback when a task fails due to an exception
...
(Bitbake rev: 5bb24832761bd518cb0249125f67939e0cbd0998)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-07-02 15:41:36 +01:00
Bernhard Reutner-Fischer
c63278bf34
parser: fix harmless typo in variable name
...
s/absolsute/absolute/
(Bitbake rev: 837c84ce47c298316b941a5f3d2479bd2643686b)
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:36 +01:00
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
75d49840cf
Reorganize the main exception handling so an attribute exception raised in the ui isn't misinterpreted
...
(Bitbake rev: 49b8bab706c59e93287f8540187b62ba3ece0a11)
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
Chris Larson
0405011734
Adjust the exception handling based on Cliff Brake's patch
...
Rather than printing the exception ourselves, might as well re-raise and let
the default exception handler do it for us.
(Bitbake rev: acca7eb8450cbe30d65b5b266f1a642e7965df8a)
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
Robert P. J. Day
6ab1dbbb7c
Fix a couple typos in the CVS Fetcher section.
...
"DL_DIRS" -> "DL_DIR"
Remove superfluous trailing ">" after CVSDIR.
(Bitbake rev: 34f396e749303367e657911bf10c43086dff7552)
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca >
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
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