From 0110debbea72967413a342c887e37cd152dfc2a1 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 10 May 2015 10:40:09 +0200 Subject: [PATCH] ignore dirty repos too --- osclib/cleanup_rings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osclib/cleanup_rings.py b/osclib/cleanup_rings.py index 48e7a6a3..158fee6f 100644 --- a/osclib/cleanup_rings.py +++ b/osclib/cleanup_rings.py @@ -68,7 +68,7 @@ class CleanupRings(object): root = ET.parse(http_GET(url)).getroot() for repo in root.findall('result'): repostate = repo.get('state', 'missing') - if repostate not in ['unpublished', 'published']: + if repostate not in ['unpublished', 'published'] or repo.get('dirty', 'false') == 'true': print('Repo {}/{} is in state {}'.format(repo.get('project'), repo.get('repository'), repostate)) return False for package in repo.findall('status'):