Commit 4028d47d authored by Felix Exner's avatar Felix Exner Committed by Oskar Roesler
Browse files

Create list of failed packages

parent 693e8e85
......@@ -63,8 +63,15 @@ class Packages(Routines):
def build(self):
if self.package == "all":
failed_packages = list()
for folder in os.listdir(self.packages_path):
Packages(folder, self.verbosity, self.output).makepkg()
try:
Packages(folder, self.verbosity, self.output).makepkg()
except RuntimeWarning as err:
# Using the actual package name would be nicer!
failed_packages.append(folder)
print(err)
print("Failed packages:\n{}".format(" ".join(failed_packages)))
else:
self.makepkg()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment