Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit d4f05ea

Browse files
author
William Douglas
committed
Reject /usr and /usr/ as possible rpm files
These should not be handled paths for autospec. This is a bit of a hack to work around the rpm build logs being incomplete however and might be worth reverting if the log issue is fixed. Signed-off-by: William Douglas <william.douglas@intel.com>
1 parent a88ffdc commit d4f05ea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

autospec/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ def parse_build_results(self, filename, returncode, filemanager, config, require
215215
elif infiles == 1 and "not matching the package arch" not in line:
216216
# exclude blank lines from consideration...
217217
file = line.strip()
218+
if file in ("/usr", "/usr/"):
219+
self.must_restart += 1
218220
if file and file[0] == "/":
219221
filemanager.push_file(file, content.name)
220222

0 commit comments

Comments
 (0)