build: Mark the errors with the source package name to give more info
This commit is contained in:
@@ -748,12 +748,12 @@ class Builder:
|
|||||||
path = os.path.normpath(path_info.path)
|
path = os.path.normpath(path_info.path)
|
||||||
|
|
||||||
if not path.startswith("/"):
|
if not path.startswith("/"):
|
||||||
raise Error(_("Path must start with a slash: "
|
raise Error(_("Source package '%s' defines a relative 'Path' element: "
|
||||||
"%s") % path_info.path)
|
"%s") % (self.spec.source.name, path_info.path))
|
||||||
|
|
||||||
if path in paths:
|
if path in paths:
|
||||||
raise Error(_("Multiple 'Path' tags specified "
|
raise Error(_("Source package '%s' defines multiple 'Path' tags "
|
||||||
"for this path: %s") % path_info.path)
|
"for %s") % (self.spec.source.name, path_info.path))
|
||||||
|
|
||||||
paths.append(path)
|
paths.append(path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user