summaryrefslogtreecommitdiff
path: root/classes/patch.bbclass
diff options
context:
space:
mode:
authorChris Larson <clarson@mvista.com>2009-03-13 13:42:06 -0700
committerChris Larson <clarson@mvista.com>2009-05-14 11:33:13 -0700
commit9699a955d48cb500b0b3dd691be68979c93bc72e (patch)
treeaa1d2990d463eb51fffdc4a09ce565db64789a48 /classes/patch.bbclass
parentc0622e65a95f42f921e24bfcbc90bce8c838903e (diff)
Shorten some full paths printed to the user.
Adds a base_path_out convenience function, which prepares a full path for display to the user. The initial implementation just makes it relative to ${TOPDIR}. This function is then used for some messages outputted to the user (packaged-staging, patch application, clean, unpack tasks). Signed-off-by: Chris Larson <clarson@mvista.com>
Diffstat (limited to 'classes/patch.bbclass')
-rw-r--r--classes/patch.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/patch.bbclass b/classes/patch.bbclass
index 8d2bde0c4f..2f99e4cf30 100644
--- a/classes/patch.bbclass
+++ b/classes/patch.bbclass
@@ -527,7 +527,7 @@ python patch_do_patch() {
bb.note("Patch '%s' applies to earlier revisions" % pname)
continue
- bb.note("Applying patch '%s' (%s)" % (pname, unpacked))
+ bb.note("Applying patch '%s' (%s)" % (pname, base_path_out(unpacked, d)))
try:
patchset.Import({"file":unpacked, "remote":url, "strippath": pnum}, True)
except: