summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2006-12-06 00:17:05 +0000
committerRichard Purdie <rpurdie@rpsys.net>2006-12-06 00:17:05 +0000
commitfd0ccc8e567812ea18d4fbde8a2749bc814d8e4d (patch)
tree4f3ef6c64843b3b3de3601fa31bcd60fdb03543a
parent4e36a64d88ced2e029946a0c8e2fc861f97038f9 (diff)
patch.bbclass: Fix errors when reapplying patches
-rw-r--r--classes/patch.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/patch.bbclass b/classes/patch.bbclass
index e3b89ba4f9..0a7b94cffc 100644
--- a/classes/patch.bbclass
+++ b/classes/patch.bbclass
@@ -38,7 +38,7 @@ def patch_init(d):
if not os.path.exists(dir):
raise NotFoundError(dir)
os.chdir(dir)
- # print("cwd: %s -> %s" % (olddir, self.dir))
+ # print("cwd: %s -> %s" % (olddir, dir))
try:
args = [ commands.mkarg(str(arg)) for arg in args ]
@@ -231,6 +231,7 @@ def patch_init(d):
args = ["import", "-p", patch["strippath"]]
if force:
args.append("-f")
+ args.append("-dn")
args.append(patch["file"])
self._runcmd(args)