build: Mark the errors with the source package name to give more info

This commit is contained in:
Ozan Çağlayan
2011-06-07 12:23:36 +00:00
parent 8b408a6220
commit a79572c613
+4 -4
View File
@@ -748,12 +748,12 @@ class Builder:
path = os.path.normpath(path_info.path)
if not path.startswith("/"):
raise Error(_("Path must start with a slash: "
"%s") % path_info.path)
raise Error(_("Source package '%s' defines a relative 'Path' element: "
"%s") % (self.spec.source.name, path_info.path))
if path in paths:
raise Error(_("Multiple 'Path' tags specified "
"for this path: %s") % path_info.path)
raise Error(_("Source package '%s' defines multiple 'Path' tags "
"for %s") % (self.spec.source.name, path_info.path))
paths.append(path)