From d394e3b75185803de3e7eddfca91a1a2efeb73ce Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Tue, 29 May 2012 10:42:51 -0500 Subject: [PATCH] Update obsolete branch for F-17 release. --- scripts/process-git-requests/process-git-requests | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/process-git-requests/process-git-requests b/scripts/process-git-requests/process-git-requests index 37ebbc9..ba12012 100755 --- a/scripts/process-git-requests/process-git-requests +++ b/scripts/process-git-requests/process-git-requests @@ -1,6 +1,10 @@ #!/usr/bin/python -t VERSION = "1.0" +# Unfortunately pkgdb can't tell us when we stop accepting branches for the +# oldest supported release, so this needs updating manually. +OBSOLETE_BRANCH='F-15' + # A bug for testing new types of badly formatted requests exists: # https://bugzilla.redhat.com/show_bug.cgi?id=622067 @@ -722,9 +726,9 @@ if __name__ == '__main__': for i in pkgdb.get_collection_list(eol=False): branches[i[0]['branchname']] = 1 - # Unfortunately pkgdb can't tell us when branches are no longer accepted - if 'F-14' in branches: - del branches['F-14'] + # Prune any obsolete branches + if OBSOLETE_BRANCH in branches: + del branches[OBSOLETE_BRANCH] if 'EL-4' in branches: del branches['EL-4']