bitbake.git
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>
10 years agoIgnore deprecation warnings for now
Chris Larson [Sun, 11 Apr 2010 05:07:43 +0000 (22:07 -0700)]
Ignore deprecation warnings for now

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoSwitch some references to moved functions
Chris Larson [Sun, 11 Apr 2010 05:05:02 +0000 (22:05 -0700)]
Switch some references to moved functions

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoAdd a missing import of print_function
Chris Larson [Sun, 11 Apr 2010 05:04:52 +0000 (22:04 -0700)]
Add a missing import of print_function

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoApply the 2to3 print function transform
Chris Larson [Sat, 10 Apr 2010 02:46:14 +0000 (19:46 -0700)]
Apply the 2to3 print function transform

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDeprecate the usage of certain objects via certain modules
Chris Larson [Fri, 9 Apr 2010 23:51:09 +0000 (16:51 -0700)]
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.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoException handling fixups
Chris Larson [Fri, 9 Apr 2010 21:01:11 +0000 (14:01 -0700)]
Exception handling fixups

10 years agoAdd some missing docstrings
Chris Larson [Thu, 25 Mar 2010 00:05:38 +0000 (17:05 -0700)]
Add some missing docstrings

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDrop __all__ usage
Chris Larson [Fri, 9 Apr 2010 18:51:29 +0000 (11:51 -0700)]
Drop __all__ usage

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDrop some unused functions
Chris Larson [Thu, 8 Apr 2010 22:42:53 +0000 (15:42 -0700)]
Drop some unused functions

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDrop some unused classes
Chris Larson [Thu, 8 Apr 2010 22:16:17 +0000 (15:16 -0700)]
Drop some unused classes

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDrop some unused vars
Chris Larson [Fri, 9 Apr 2010 18:47:08 +0000 (11:47 -0700)]
Drop some unused vars

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoImport fixups
Chris Larson [Thu, 8 Apr 2010 17:22:29 +0000 (10:22 -0700)]
Import fixups

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoFormatting cleanups
Chris Larson [Wed, 24 Mar 2010 23:56:12 +0000 (16:56 -0700)]
Formatting cleanups

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDon't run metadata event handlers for bb.msg events
Chris Larson [Fri, 9 Apr 2010 22:56:14 +0000 (15:56 -0700)]
Don't run metadata event handlers for bb.msg events

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoStop using functions via 'bb' that were moved from there to other modules
Chris Larson [Sat, 10 Apr 2010 00:11:03 +0000 (17:11 -0700)]
Stop using functions via 'bb' that were moved from there to other modules

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoAdd a function to get the debug level, without poking into debug_levels manually
Chris Larson [Sat, 10 Apr 2010 02:34:07 +0000 (19:34 -0700)]
Add a function to get the debug level, without poking into debug_levels manually

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoFix invalid logging domain warning
Chris Larson [Sat, 10 Apr 2010 02:33:04 +0000 (19:33 -0700)]
Fix invalid logging domain warning

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoBump minimum python version check to 2.6.
Chris Larson [Sat, 10 Apr 2010 02:29:56 +0000 (19:29 -0700)]
Bump minimum python version check to 2.6.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoMake the default domain a proper domain, not a string
Chris Larson [Sat, 10 Apr 2010 02:27:21 +0000 (19:27 -0700)]
Make the default domain a proper domain, not a string

This lets you do -l Default on the commandline to bump the debug level of
messages with no domain, without bumping the level of everything else.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoImplement bb.msg.domain as a named tuple, drop the Enum class
Chris Larson [Sat, 10 Apr 2010 02:22:52 +0000 (19:22 -0700)]
Implement bb.msg.domain as a named tuple, drop the Enum class

Also fixes some bb.msg references from within bb.msg.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoFix an error in the ncurses UI
Chris Larson [Sat, 10 Apr 2010 00:55:11 +0000 (17:55 -0700)]
Fix an error in the ncurses UI

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoDisplay python warnings via bb.msg
Chris Larson [Fri, 9 Apr 2010 22:55:55 +0000 (15:55 -0700)]
Display python warnings via bb.msg

Signed-off-by: Chris Larson <chris_larson@mentor.com>
10 years agoImmediately display messages if no UI handlers are installed yet
Chris Larson [Fri, 9 Apr 2010 22:55:17 +0000 (15:55 -0700)]
Immediately display messages if no UI handlers are installed yet

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