summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2009-07-19 10:07:00 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-03-22 14:54:57 +0000
commit8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6 (patch)
tree650f918eed4adbf3ae3813c4d9e9adb1c5c48351 /bitbake/lib
parentf8c6db95d7734e3f4fc7eaf82eda6d59721b3fbb (diff)
downloadopenembedded-core-8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6.tar.gz
openembedded-core-8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6.tar.bz2
openembedded-core-8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6.tar.xz
openembedded-core-8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6.zip
Fix msg usage in the moved utility functions.
(Bitbake rev: 686288444d22091dee66e20ec49b9c53f8c980b7) Signed-off-by: Chris Larson <clarson@kergoth.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/utils.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 9776c4824..9a17c9241 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -23,7 +23,7 @@ digits = "0123456789"
ascii_letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
separators = ".-"
-import re, fcntl, os, types
+import re, fcntl, os, types, bb
def explode_version(s):
r = []
@@ -435,10 +435,10 @@ def mkdirhier(dir):
directory already exists like os.makedirs
"""
- debug(3, "mkdirhier(%s)" % dir)
+ bb.debug(3, "mkdirhier(%s)" % dir)
try:
os.makedirs(dir)
- debug(2, "created " + dir)
+ bb.debug(2, "created " + dir)
except OSError, e:
if e.errno != 17: raise e
@@ -832,32 +832,32 @@ def ververify(myorigval,silent=1):
if len(myorigval) == 0:
if not silent:
- error("package version is empty")
+ bb.error("package version is empty")
__ververify_cache__[myorigval] = 0
return 0
myval = myorigval.split('.')
if len(myval)==0:
if not silent:
- error("package name has empty version string")
+ bb.error("package name has empty version string")
__ververify_cache__[myorigval] = 0
return 0
# all but the last version must be a numeric
for x in myval[:-1]:
if not len(x):
if not silent:
- error("package version has two points in a row")
+ bb.error("package version has two points in a row")
__ververify_cache__[myorigval] = 0
return 0
try:
foo = int(x)
except:
if not silent:
- error("package version contains non-numeric '"+x+"'")
+ bb.error("package version contains non-numeric '"+x+"'")
__ververify_cache__[myorigval] = 0
return 0
if not len(myval[-1]):
if not silent:
- error("package version has trailing dot")
+ bb.error("package version has trailing dot")
__ververify_cache__[myorigval] = 0
return 0
try:
@@ -880,7 +880,7 @@ def ververify(myorigval,silent=1):
ep=string.split(myval[-1],"_")
if len(ep)!= 2:
if not silent:
- error("package version has more than one letter at then end")
+ bb.error("package version has more than one letter at then end")
__ververify_cache__[myorigval] = 0
return 0
try:
@@ -888,7 +888,7 @@ def ververify(myorigval,silent=1):
except:
# this needs to be numeric, i.e. the "1" in "1_alpha"
if not silent:
- error("package version must have numeric part before the '_'")
+ bb.error("package version must have numeric part before the '_'")
__ververify_cache__[myorigval] = 0
return 0
@@ -907,7 +907,7 @@ def ververify(myorigval,silent=1):
# if no _package_weights_ work, *then* we return 0
pass
if not silent:
- error("package version extension after '_' is invalid")
+ bb.error("package version extension after '_' is invalid")
__ververify_cache__[myorigval] = 0
return 0
@@ -962,13 +962,13 @@ def pkgsplit(mypkg, silent=1):
myparts = string.split(mypkg,'-')
if len(myparts) < 2:
if not silent:
- error("package name without name or version part")
+ bb.error("package name without name or version part")
__pkgsplit_cache__[mypkg] = None
return None
for x in myparts:
if len(x) == 0:
if not silent:
- error("package name with empty name or version part")
+ bb.error("package name with empty name or version part")
__pkgsplit_cache__[mypkg] = None
return None
# verify rev
@@ -1008,7 +1008,7 @@ def pkgsplit(mypkg, silent=1):
else:
for x in myparts[:-1]:
if ververify(x):
- if not silent: error("package name has multiple version parts")
+ if not silent: bb.error("package name has multiple version parts")
__pkgsplit_cache__[mypkg] = None
return None
myval = [string.join(myparts[:-1],"-"), myparts[-1],"r0"]
@@ -1127,7 +1127,7 @@ def dep_opconvert(mysplit, myuse):
try:
mynew = dep_opconvert(mysplit[mypos+1],myuse)
except Exception, e:
- error("unable to satisfy OR dependancy: " + string.join(mysplit," || "))
+ bb.error("unable to satisfy OR dependancy: " + string.join(mysplit," || "))
raise e
mynew[0:0] = ["||"]
newsplit.append(mynew)
>369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532