bitbake.git
10 years agoDrop the 'ui failed to start' message, as the ui_init does more in knotty
Chris Larson [Fri, 6 Aug 2010 23:08:32 +0000 (16:08 -0700)]
Drop the 'ui failed to start' message, as the ui_init does more in knotty

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoMake realfile optional for better_exec, using the existing fn in the code object
Chris Larson [Wed, 31 Mar 2010 15:59:00 +0000 (08:59 -0700)]
Make realfile optional for better_exec, using the existing fn in the code object

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoWhen shutting down, send SIGTERM, not SIGINT
Chris Larson [Thu, 5 Aug 2010 04:58:51 +0000 (21:58 -0700)]
When shutting down, send SIGTERM, not SIGINT

SIGINT should be from the user, not a script.  It also doesn't work as
reliably to shut down processes, as it's not always interpreted as a
termination request.  In addition, it causes KeyboardInterrupt exceptions in
the worker processes, which can interfere with our exception handling.

Signed-off-by: Chris Larson <clarson@kergoth.com>
10 years agocooker.py: Fix case of -b option with a full filepath
Richard Purdie [Wed, 4 Aug 2010 14:38:35 +0000 (15:38 +0100)]
cooker.py: Fix case of -b option with a full filepath

(From Poky rev: c10d02a)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years ago*: Fix typo in documentation
Bernhard Reutner-Fischer [Tue, 3 Aug 2010 15:02:43 +0000 (17:02 +0200)]
*: Fix typo in documentation

s/dictonary/dictionary/

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
10 years agoAdd support for .bbappend files (see mailing lists for detais)
Richard Purdie [Fri, 16 Jul 2010 14:10:22 +0000 (15:10 +0100)]
Add support for .bbappend files (see mailing lists for detais)

(From Poky rev: 63e6ba85677b8aa9f4cf9942a1fccbb8a8c72660)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agofetch: Only mark srcrev recipes as uncached when outside of SRCREV caching mode
Richard Purdie [Sun, 25 Jul 2010 10:32:42 +0000 (11:32 +0100)]
fetch: Only mark srcrev recipes as uncached when outside of SRCREV caching mode

(From Poky rev: 36cfff8ed5b8a777a09cc8abcd8b01a1f297e404)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agocache: If one virtual of a recipe is uncached, remove all versions from the cache
Richard Purdie [Sun, 25 Jul 2010 10:33:11 +0000 (11:33 +0100)]
cache: If one virtual of a recipe is uncached, remove all versions from the cache

(From Poky rev: 7edde59de4fd8b19af55e8377138db6ee3dbb3d8)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoAdd pysh, ply, and codegen to lib/ to prepare for future work
Chris Larson [Mon, 2 Aug 2010 20:42:23 +0000 (13:42 -0700)]
Add pysh, ply, and codegen to lib/ to prepare for future work

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoutils: Fix number of arguments to bb.msg functions
Bernhard Reutner-Fischer [Mon, 26 Jul 2010 09:50:21 +0000 (11:50 +0200)]
utils: Fix number of arguments to bb.msg functions

the 'fn' argument of them is not used, should be removed anytime:
sed -i -e
'/^def.*fn/s/,[[:space:]]*fn[[:space:]]*=[[:space:]]*None[[:space:]]*)/)/g'
lib/bb/msg.py

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
10 years ago*: cosmetic whitespace removal
Bernhard Reutner-Fischer [Wed, 14 Jul 2010 21:26:00 +0000 (23:26 +0200)]
*: cosmetic whitespace removal

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
10 years agoLet the runqueue find the user selected scheduler dynamically
Chris Larson [Thu, 22 Jul 2010 17:54:58 +0000 (10:54 -0700)]
Let the runqueue find the user selected scheduler dynamically

Searches the module (bb.runqueue) for any new style classes which are
instances of RunQueueScheduler, and uses the one whose 'name' attribute
matches the value of BB_SCHEDULER.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agorunqueue: Allow passing of success/failure handlers to runqueue_process_waitpid()
Richard Purdie [Tue, 6 Jul 2010 16:45:18 +0000 (17:45 +0100)]
runqueue: Allow passing of success/failure handlers to runqueue_process_waitpid()

(From Poky rev: 6598f98ba8fc2d058a1a5d948b48f81a2b052776)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agorunqueue: Allow taskname to be passed to check_stamp_task()
Richard Purdie [Tue, 6 Jul 2010 16:47:43 +0000 (17:47 +0100)]
runqueue: Allow taskname to be passed to check_stamp_task()

(From Poky rev: 8c238504536c9af824557622a1e284ebf0b884a5)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agorunqueue: Make child process error scary so user is less likely to ignore
Richard Purdie [Tue, 6 Jul 2010 16:46:13 +0000 (17:46 +0100)]
runqueue: Make child process error scary so user is less likely to ignore

(From Poky rev: 009343b2a298d0fd94ef4bbf780c76cca622e9e0)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agorunqueue: Fix number of running tasks accounting (include failed tasks)
Richard Purdie [Tue, 6 Jul 2010 16:42:40 +0000 (17:42 +0100)]
runqueue: Fix number of running tasks accounting (include failed tasks)

(From Poky rev: 2d263840b03cfaa93ea8b8bd036273838b7f6a5f)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agorunqueue: Remove unneeded exception catching from fork_off_task()
Richard Purdie [Tue, 6 Jul 2010 16:41:55 +0000 (17:41 +0100)]
runqueue: Remove unneeded exception catching from fork_off_task()

(From Poky rev: 3cd042f5055eb217e71213fbe2243575d604c186)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agorunqueue: Separate out task forking code into a new function
Richard Purdie [Tue, 6 Jul 2010 16:41:11 +0000 (17:41 +0100)]
runqueue: Separate out task forking code into a new function

(From Poky rev: 5c44f9a78dd310b31df2d84128c4b3ca468d685d)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agorunqueue: Combine the waitpid result handling code into a function
Richard Purdie [Mon, 5 Jul 2010 14:42:25 +0000 (15:42 +0100)]
runqueue: Combine the waitpid result handling code into a function

(From Poky rev: 8a5b5080a2fa0db7972573cfcd8e04abedb22618)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoRemove two layers of unnecessary functions from task execution
Richard Purdie [Mon, 5 Jul 2010 14:04:06 +0000 (15:04 +0100)]
Remove two layers of unnecessary functions from task execution

(From Poky rev: 90db9f30749b3f93a6c7d503af544ee8e0ca1728)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years ago*: use print() as a function
Bernhard Reutner-Fischer [Fri, 18 Jun 2010 10:50:15 +0000 (12:50 +0200)]
*: use print() as a function

to make python3 happy

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
10 years agoFix handling of empty variables in local config files
Richard Purdie [Thu, 1 Jul 2010 22:54:13 +0000 (23:54 +0100)]
Fix handling of empty variables in local config files

(From Poky rev: dbd9308)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoGross hack to fix packaged-staging with BBCLASSEXTEND packages
Richard Purdie [Tue, 23 Mar 2010 22:33:02 +0000 (22:33 +0000)]
Gross hack to fix packaged-staging with BBCLASSEXTEND packages

(From Poky rev: 589df80ca1b825afd138531bb796aa8617ed0991)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agocreate cooker object after cleaning the environment
Jeff Dike [Tue, 29 Jun 2010 12:33:24 +0000 (13:33 +0100)]
create cooker object after cleaning the environment

Previously, the cooker object was created before the environment was
cleaned, saving everything that was in the environment and dumping
into the run scripts.

The patch ensures that the cooker gets a cleaned environment when it's
created.

(From Poky rev: 6418d0492a60ed37d13e1060c2e8c09cd127c450)

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoMove the logger initialization from cooker to utils
Jeff Dike [Tue, 29 Jun 2010 12:32:04 +0000 (13:32 +0100)]
Move the logger initialization from cooker to utils

In order to move the environment cleaning, which wants to log a
message, before cooker creation, the logging facility initialization
needs to happen earlier.  So, it is now in init_logger in utils.py and
called from bitbake before the creation of the data object.

It also seems more correct to initialize a global facility like this
from a more global context than the creation of an object, of which
there could theoretically be many.

(From Poky rev: f9d7e9e3be89ac9141fb0eb7c71eef5a9a82add9)

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agobitbake decodeurl: fix the file:// url handling
Nitin A Kamble [Fri, 4 Jun 2010 04:50:02 +0000 (21:50 -0700)]
bitbake decodeurl: fix the file:// url handling

Without this patch decoding a url of this kind file://dir/filename gives
path=/filename host=dir.
With the patch it decodes as path=/dir/filename host=""

Probably nobody stumbled on this issue yet because nobody used
file:// urls with directory names in the path.

(From Poky rev: c3682bf89bdf236a4b4d834069d947b6a1456791)

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoallow fakeroot functionality to be provided by an alternative program
Joshua Lock [Fri, 25 Jun 2010 12:52:51 +0000 (13:52 +0100)]
allow fakeroot functionality to be provided by an alternative program

If the variable FAKEROOT is set its value will be used, otherwise we default
to fakeroot.

(From Poky rev: 43f0d63237604e85e1af9d289a9aaeac96b86362)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoAdd bb.utils.join_deps to handle creation of dependency strings with versions
Richard Purdie [Wed, 30 Jun 2010 08:47:36 +0000 (09:47 +0100)]
Add bb.utils.join_deps to handle creation of dependency strings with versions

(From Poky rev: 9a543b75cab2daf6536afce100cb5d6031fca9e)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoAdd a couple long term, high impact TODO items
Chris Larson [Thu, 24 Jun 2010 18:01:25 +0000 (11:01 -0700)]
Add a couple long term, high impact TODO items

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoAdd a warning if a BBFILE_PATTERN doesn't match any bb files
Chris Larson [Thu, 24 Jun 2010 17:53:36 +0000 (10:53 -0700)]
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.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years ago3.0 prep
Chris Larson [Sun, 20 Jun 2010 19:07:34 +0000 (12:07 -0700)]
3.0 prep

10 years agoApply some 2to3 refactorings
Chris Larson [Sun, 20 Jun 2010 19:08:07 +0000 (12:08 -0700)]
Apply some 2to3 refactorings

10 years agoDrop a couple usages of readlines
Chris Larson [Fri, 18 Jun 2010 14:56:55 +0000 (07:56 -0700)]
Drop a couple usages of readlines

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoUntil the interactive mode is fixed, kill it from the valid options, to avoid confusion
Chris Larson [Fri, 18 Jun 2010 15:07:51 +0000 (08:07 -0700)]
Until the interactive mode is fixed, kill it from the valid options, to avoid confusion

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoFix syntax error in shell.py
Chris Larson [Fri, 18 Jun 2010 15:06:37 +0000 (08:06 -0700)]
Fix syntax error in shell.py

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoAdd missing 'return False' to the SystemExit handler in runAsyncCommand
Chris Larson [Sat, 19 Jun 2010 00:31:37 +0000 (17:31 -0700)]
Add missing 'return False' to the SystemExit handler in runAsyncCommand

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoMove serverConnection.terminate() back into the finally
Chris Larson [Fri, 18 Jun 2010 16:21:31 +0000 (09:21 -0700)]
Move serverConnection.terminate() back into the finally

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoLimit the traceback length in the default exception handler
Chris Larson [Thu, 17 Jun 2010 20:52:53 +0000 (13:52 -0700)]
Limit the traceback length in the default exception handler

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoSwitch from our own 'dummywrite' class to StringIO
Chris Larson [Wed, 16 Jun 2010 13:53:24 +0000 (06:53 -0700)]
Switch from our own 'dummywrite' class to StringIO

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoSwitch a fatal usage to SystemExit ("T" not set)
Chris Larson [Thu, 10 Jun 2010 16:14:39 +0000 (09:14 -0700)]
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.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoResurrect the excepthook, this time just sending the info with bb.fatal
Chris Larson [Wed, 16 Jun 2010 17:15:08 +0000 (10:15 -0700)]
Resurrect the excepthook, this time just sending the info with bb.fatal

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoremove return in finally statement
Cliff Brake [Wed, 16 Jun 2010 00:29:54 +0000 (17:29 -0700)]
remove return in finally statement

causes exceptions to not be handled after the finally statement

Signed-off-by: Cliff Brake <cbrake@bec-systems.com>
Signed-off-by: Chris Larson <clarson@kergoth.com>
10 years agocooker: Kill __getitem__ usage on exception objects (python 3 prep)
Chris Larson [Thu, 10 Jun 2010 22:09:55 +0000 (15:09 -0700)]
cooker: Kill __getitem__ usage on exception objects (python 3 prep)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoHandle SystemExit and KeyboardInterrupt sanely when executing a command
Chris Larson [Thu, 10 Jun 2010 17:21:41 +0000 (10:21 -0700)]
Handle SystemExit and KeyboardInterrupt sanely when executing a command

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDrop unnecessarly duplicated messages wrt FuncFailed
Chris Larson [Thu, 10 Jun 2010 17:36:06 +0000 (10:36 -0700)]
Drop unnecessarly duplicated messages wrt FuncFailed

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoknotty: use the future division to prep for 3.x
Chris Larson [Thu, 10 Jun 2010 17:23:03 +0000 (10:23 -0700)]
knotty: use the future division to prep for 3.x

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoKill the unnecessary setVarFlag debugging message
Chris Larson [Thu, 10 Jun 2010 17:36:19 +0000 (10:36 -0700)]
Kill the unnecessary setVarFlag debugging message

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoAdd exception bits to TODO
Chris Larson [Thu, 10 Jun 2010 17:46:57 +0000 (10:46 -0700)]
Add exception bits to TODO

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoknotty: stop freaking out and dying when bb.build has removed the empty logfile
Chris Larson [Thu, 10 Jun 2010 17:44:20 +0000 (10:44 -0700)]
knotty: stop freaking out and dying when bb.build has removed the empty logfile

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoUse bb.utils.mkdirhier in bb.cache to shut up the pending deprecation warning
Chris Larson [Thu, 10 Jun 2010 16:46:02 +0000 (09:46 -0700)]
Use bb.utils.mkdirhier in bb.cache to shut up the pending deprecation warning

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoUse PendingDeprecationWarning for functions moved from bb to bb.utils
Chris Larson [Thu, 10 Jun 2010 16:43:39 +0000 (09:43 -0700)]
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.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoAdd fatal bits and LAYERDIR bits to TODO
Chris Larson [Thu, 10 Jun 2010 15:32:03 +0000 (08:32 -0700)]
Add fatal bits and LAYERDIR bits to TODO

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoStart ditching fatal() calls in favor of raising appropriate exceptions
Chris Larson [Thu, 10 Jun 2010 14:47:16 +0000 (07:47 -0700)]
Start ditching fatal() calls in favor of raising appropriate exceptions

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDrop the non-debug traceback suppressor, at this point I think it does more harm...
Chris Larson [Thu, 10 Jun 2010 15:05:33 +0000 (08:05 -0700)]
Drop the non-debug traceback suppressor, at this point I think it does more harm than good

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoChange wget fetcher to use the runfetchcmd
Ryan Phillips [Tue, 8 Jun 2010 19:20:55 +0000 (14:20 -0500)]
Change wget fetcher to use the runfetchcmd

* Fixes proxy support to honor standard proxy environment variables.
* Quote environment variables

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoShow a traceback when a task fails due to an exception
Chris Larson [Thu, 10 Jun 2010 02:26:21 +0000 (19:26 -0700)]
Show a traceback when a task fails due to an exception

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoUpdate the TODO
Chris Larson [Wed, 9 Jun 2010 22:06:02 +0000 (15:06 -0700)]
Update the TODO

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoparser: fix harmless typo in variable name
Bernhard Reutner-Fischer [Wed, 9 Jun 2010 16:06:57 +0000 (18:06 +0200)]
parser: fix harmless typo in variable name

s/absolsute/absolute/

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
10 years agoFix the silent exit when the specified task doesn't exist
Chris Larson [Wed, 9 Jun 2010 00:03:34 +0000 (17:03 -0700)]
Fix the silent exit when the specified task doesn't exist

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoMove the output of no provider and multiple provider messages into the UI
Chris Larson [Tue, 8 Jun 2010 20:20:35 +0000 (13:20 -0700)]
Move the output of no provider and multiple provider messages into the UI

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoReorganize the main exception handling so an attribute exception raised in the ui...
Chris Larson [Tue, 8 Jun 2010 19:28:36 +0000 (12:28 -0700)]
Reorganize the main exception handling so an attribute exception raised in the ui isn't misinterpreted

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoMake knotty ignore the NoProvider event
Chris Larson [Tue, 8 Jun 2010 18:42:49 +0000 (11:42 -0700)]
Make knotty ignore the NoProvider event

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDon't tell the user we're sending SIGINT to the remaining 0 tasks
Chris Larson [Tue, 8 Jun 2010 15:01:16 +0000 (08:01 -0700)]
Don't tell the user we're sending SIGINT to the remaining 0 tasks

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agocooker: use time.strftime() instead of spawing sh with date
Bernhard Reutner-Fischer [Mon, 7 Jun 2010 18:50:05 +0000 (20:50 +0200)]
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>'"

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
10 years agoAdjust the exception handling based on Cliff Brake's patch
Chris Larson [Fri, 4 Jun 2010 23:44:07 +0000 (16:44 -0700)]
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.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoFix a couple typos in the CVS Fetcher section.
Robert P. J. Day [Thu, 3 Jun 2010 09:58:09 +0000 (05:58 -0400)]
Fix a couple typos in the CVS Fetcher section.

"DL_DIRS" -> "DL_DIR"
Remove superfluous trailing ">" after CVSDIR.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoFix a couple typos in setup.py.
Robert P. J. Day [Thu, 3 Jun 2010 09:26:17 +0000 (05:26 -0400)]
Fix a couple typos in setup.py.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agocache: do not chdir unnecessarily
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:42 +0000 (14:04 +0200)]
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.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agopersist_data: cache connection and use cursor
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:41 +0000 (14:04 +0200)]
persist_data: cache connection and use cursor

Store database connection to persistent database in fetcher.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agocache: use a set() for __depends
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:40 +0000 (14:04 +0200)]
cache: use a set() for __depends

to make updating depends easier/more intuitive/eventually faster

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agocache: use max() to determine newest_mtime
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:39 +0000 (14:04 +0200)]
cache: use max() to determine newest_mtime

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agocache: use os.path ops instead of stat
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:38 +0000 (14:04 +0200)]
cache: use os.path ops instead of stat

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoMake the file not found error actually useable.
Chris Larson [Fri, 4 Jun 2010 20:10:00 +0000 (13:10 -0700)]
Make the file not found error actually useable.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agofetch: commentary typo fix in fetcher_init()
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:37 +0000 (14:04 +0200)]
fetch: commentary typo fix in fetcher_init()

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
10 years agocache: fix typo in error message of cacheValidUpdate()
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:36 +0000 (14:04 +0200)]
cache: fix typo in error message of cacheValidUpdate()

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
10 years agofetch: documentation typo fix
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:35 +0000 (14:04 +0200)]
fetch: documentation typo fix

s/initilize/initialize/

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
10 years agofetch: Check for existence of tar file along with md5 signature
Khem Raj [Wed, 5 May 2010 05:56:49 +0000 (22:56 -0700)]
fetch: Check for existence of tar file along with md5 signature

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoRevert "In expand, drop the unnecessary second regular expression match"
Chris Larson [Sat, 22 May 2010 23:36:08 +0000 (16:36 -0700)]
Revert "In expand, drop the unnecessary second regular expression match"

This reverts commit 05462fa7908fc22988b3dc9d376798d0a46ccb5a.

10 years agoDon't emit vars starting with __, as those are internal
Chris Larson [Tue, 20 Apr 2010 21:23:18 +0000 (14:23 -0700)]
Don't emit vars starting with __, as those are internal

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoIn expand, drop the unnecessary second regular expression match
Chris Larson [Fri, 21 May 2010 20:08:44 +0000 (13:08 -0700)]
In expand, drop the unnecessary second regular expression match

Signed-off-by: Imran Mehmood <imran_mehmood@mentor.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoSimplify _findVar a bit
Chris Larson [Wed, 21 Apr 2010 17:57:17 +0000 (10:57 -0700)]
Simplify _findVar a bit

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoFix major bug that slipped in when moving update_data
Chris Larson [Wed, 21 Apr 2010 23:47:10 +0000 (16:47 -0700)]
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.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoMove a var definition in cooker.parse_next
Chris Larson [Wed, 21 Apr 2010 01:47:36 +0000 (18:47 -0700)]
Move a var definition in cooker.parse_next

Signed-off-by: Chris Larson <clarson@kergoth.com>
10 years agoEnhance the expansion exception message
Chris Larson [Tue, 20 Apr 2010 22:56:20 +0000 (15:56 -0700)]
Enhance the expansion exception message

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoFor ${@}, run str() on the result
Chris Larson [Tue, 20 Apr 2010 22:54:42 +0000 (15:54 -0700)]
For ${@}, run str() on the result

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoAllow emission of non-string objects in emit_var, instead running str() on it first
Chris Larson [Tue, 20 Apr 2010 20:44:06 +0000 (13:44 -0700)]
Allow emission of non-string objects in emit_var, instead running str() on it first

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoemit_env: clean up, iterate once
Chris Larson [Tue, 20 Apr 2010 20:51:35 +0000 (13:51 -0700)]
emit_env: clean up, iterate once

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoFix the debug level check in print_exception
Chris Larson [Tue, 20 Apr 2010 19:23:41 +0000 (12:23 -0700)]
Fix the debug level check in print_exception

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDon't try to expand non-string values
Chris Larson [Tue, 20 Apr 2010 18:53:31 +0000 (11:53 -0700)]
Don't try to expand non-string values

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoMove the python version check into the python package
Chris Larson [Thu, 15 Apr 2010 15:45:15 +0000 (08:45 -0700)]
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.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDrop an unnecessary second python version check and use the less ugly sys.version_info
Chris Larson [Thu, 15 Apr 2010 15:14:53 +0000 (08:14 -0700)]
Drop an unnecessary second python version check and use the less ugly sys.version_info

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoBump version to 1.11.0
Chris Larson [Thu, 15 Apr 2010 15:05:10 +0000 (08:05 -0700)]
Bump version to 1.11.0

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoMove the python version check before the module imports, in case the modules utilize...
Chris Larson [Thu, 15 Apr 2010 14:49:54 +0000 (07:49 -0700)]
Move the python version check before the module imports, in case the modules utilize the newer python features

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoSearch up the directory tree for bblayers.conf
Chris Larson [Wed, 14 Apr 2010 21:38:18 +0000 (14:38 -0700)]
Search up the directory tree for bblayers.conf

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoAdd a hack to avoid the req that all vars using LAYERDIR be immediately expanded
Chris Larson [Wed, 14 Apr 2010 21:30:09 +0000 (14:30 -0700)]
Add a hack to avoid the req that all vars using LAYERDIR be immediately expanded

See the comment in the code for details.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoMove the unset BBPATH sanity check after the bblayers processing
Chris Larson [Wed, 14 Apr 2010 21:27:29 +0000 (14:27 -0700)]
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.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoKill unnecessary usages of the types module
Chris Larson [Mon, 12 Apr 2010 15:14:11 +0000 (08:14 -0700)]
Kill unnecessary usages of the types module

types.IntType -> int
types.StringType -> basestring
...

Also moves our ImmutableTypes tuple into our own namespace.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoApply some 2to3 transforms that don't cause issues in 2.6
Chris Larson [Mon, 12 Apr 2010 00:03:55 +0000 (17:03 -0700)]
Apply some 2to3 transforms that don't cause issues in 2.6

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoAdd __contains__ to COWDictMeta
Chris Larson [Mon, 12 Apr 2010 00:21:14 +0000 (17:21 -0700)]
Add __contains__ to COWDictMeta

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDrop unused bb.data.expandData function
Chris Larson [Sun, 11 Apr 2010 23:39:24 +0000 (16:39 -0700)]
Drop unused bb.data.expandData function

Signed-off-by: Chris Larson <chris_larson@mentor.com>