[ARVADOS-DEV] updated: 406aeeef5614f60844d92bed6d6aa3440547d077

Git user git at public.arvados.org
Mon Jan 4 18:28:03 UTC 2021


Summary of changes:
 jenkins/packaging-move-dev-to-attic.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

       via  406aeeef5614f60844d92bed6d6aa3440547d077 (commit)
      from  ab8f5649992b09908290ef624f3414023ded5c30 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 406aeeef5614f60844d92bed6d6aa3440547d077
Author: Ward Vandewege <ward at curii.com>
Date:   Mon Jan 4 13:27:21 2021 -0500

    packaging-move-dev-to-attic.py: remove hardcoded list of supported
    distributions, instead validate the distribution name by pattern.
    
    refs #17219
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>

diff --git a/jenkins/packaging-move-dev-to-attic.py b/jenkins/packaging-move-dev-to-attic.py
index 5dac3c0..4cc0d39 100755
--- a/jenkins/packaging-move-dev-to-attic.py
+++ b/jenkins/packaging-move-dev-to-attic.py
@@ -95,9 +95,15 @@ class CollectPackageName:
 
     return return_value
 
+def distro(astring):
+    if re.fullmatch(r'.*-dev', astring) == None:
+        raise ValueError
+    return astring
+
 parser = argparse.ArgumentParser(description='List the packages to delete.')
-parser.add_argument('distro', choices=['bionic-dev','jessie-dev','precise-dev','stretch-dev','trusty-dev','wheezy-dev','xenial-dev','buster-dev'],
-                    help='distro to do the clean up')
+parser.add_argument('distro',
+                    type=distro,
+                    help='distro to process, must be a dev repository, e.g. buster-dev')
 parser.add_argument('--repo_dir',
                     default='/var/www/aptly_public/',
                     help='parent directory of the aptly repositories (default:  %(default)s)')

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list