From fd0ccc8e567812ea18d4fbde8a2749bc814d8e4d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 6 Dec 2006 00:17:05 +0000 Subject: patch.bbclass: Fix errors when reapplying patches --- classes/patch.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'classes/patch.bbclass') 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) -- cgit 1.2.3-korg