From f95c956f1a14cb5d3792b458da37948f86f3c453 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Fri, 2 Oct 2009 15:34:20 +0200 Subject: [PATCH] display location of failed patch in error message Signed-off-by: Gordon Hecker --- Changelog | 2 ++ local/files.lua | 1 + 2 files changed, 3 insertions(+) diff --git a/Changelog b/Changelog index 1f39ae6..39b3f2d 100644 --- a/Changelog +++ b/Changelog @@ -10,6 +10,8 @@ NEXT: * a bug in configuration validation for files sources was fixed * a bug in validating the licences attribute in source configurations was fixed + * the location of a patch that does not apply is included in the error + message now * unused code was removed * the faq section in the documentation was extended * outdated documentation was removed diff --git a/local/files.lua b/local/files.lua index bd7b7ea..b47b350 100644 --- a/local/files.lua +++ b/local/files.lua @@ -269,6 +269,7 @@ function files.prepare_source(info, sourcename, sourceset, buildpath) symlink, path) rc, re = e2lib.patch(args) if not rc then + e:append("applying patch: \"%s:%s\"", file.server, file.location) return false, e:cat(re) end elseif file.copy then -- 2.39.5