aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-02-17 12:14:36 +0100
committerMichał Górny <mgorny@gentoo.org>2017-02-17 12:14:36 +0100
commit4b1b7cc4a85c87c14a9835177b4be5f063c5f9db (patch)
treea1a441e1d462f8533f390b2c6bee6be1183a878b
parentpkgcheck: Make UnnecessaryManifest fatal (diff)
downloadqa-scripts-4b1b7cc4a85c87c14a9835177b4be5f063c5f9db.tar.gz
qa-scripts-4b1b7cc4a85c87c14a9835177b4be5f063c5f9db.tar.bz2
qa-scripts-4b1b7cc4a85c87c14a9835177b4be5f063c5f9db.zip
packages-inheriting-eclasses: Remove stale output files
-rwxr-xr-xpackages-inheriting-eclasses.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index 61b4ab0..082af8d 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -22,7 +22,10 @@ def main(argv):
try:
os.mkdir(outputdir)
except OSError:
- pass # XXX: removing old eclasses?
+ # remove stale output files
+ for f in os.listdir(outputdir):
+ if f.endswith('.txt') and f[:-4] not in output:
+ os.remove(os.path.join(outputdir, f))
os.chdir(outputdir)
for eclass in output: