]> code.ossystems Code Review - openembedded-core.git/commitdiff
Fix the patch.bbclass error handling in a couple of the error paths by changing the...
authorChris Larson <kergoth@openedhand.com>
Wed, 23 Aug 2006 08:50:26 +0000 (08:50 +0000)
committerChris Larson <kergoth@openedhand.com>
Wed, 23 Aug 2006 08:50:26 +0000 (08:50 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@627 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/patch.bbclass

index aa54d9b32f55ab5ff5739011bba07274e782e03e..6f6dc0e30e82f06ab4c953861a2efd7a921de159 100644 (file)
@@ -52,12 +52,11 @@ def patch_init():
                                os.chdir(olddir)
        
        class PatchError(Exception):
-               def __init__(self, patch, msg):
+               def __init__(self, msg):
                        self.msg = msg
-                       self.patch = patch
        
                def __str__(self):
-                       return "Patch Error: patch %s: %s" % (os.path.basename(self.patch.file), self.msg)
+                       return "Patch Error: %s" % self.msg
        
        import bb, bb.data, bb.fetch
        
@@ -231,7 +230,7 @@ def patch_init():
        
                                        shutil.copyfile(patch["quiltfile"], patch["file"])
                                else:
-                                       raise PatchError(patch, "Unable to do a remote refresh of %s, unsupported remote url scheme %s." % (os.path.basename(patch["quiltfile"]), type))
+                                       raise PatchError("Unable to do a remote refresh of %s, unsupported remote url scheme %s." % (os.path.basename(patch["quiltfile"]), type))
                        else:
                                # quilt refresh
                                args = ["refresh"]