[ARVADOS-DEV] updated: 4e1dfa0b3e52c85400a8a7c731aa213b586d3114

Git user git at public.arvados.org
Mon Jan 4 18:55:39 UTC 2021


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

       via  4e1dfa0b3e52c85400a8a7c731aa213b586d3114 (commit)
      from  406aeeef5614f60844d92bed6d6aa3440547d077 (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 4e1dfa0b3e52c85400a8a7c731aa213b586d3114
Author: Ward Vandewege <ward at curii.com>
Date:   Mon Jan 4 13:55:21 2021 -0500

    Address review comments.
    
    closes #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 4cc0d39..bb503a7 100755
--- a/jenkins/packaging-move-dev-to-attic.py
+++ b/jenkins/packaging-move-dev-to-attic.py
@@ -11,6 +11,8 @@ import subprocess
 import pprint
 import re
 
+from datetime import date
+
 class DebugExecutor:
   def __init__(self, package_list):
     self.package_list = package_list
@@ -100,6 +102,7 @@ def distro(astring):
         raise ValueError
     return astring
 
+today = date.today()
 parser = argparse.ArgumentParser(description='List the packages to delete.')
 parser.add_argument('distro',
                     type=distro,
@@ -111,7 +114,7 @@ parser.add_argument('--min_packages', type=int,
                     default=5,
                     help='minimum amount of packages to leave in the repo (default:  %(default)s)')
 parser.add_argument('--cutoff_date', type=lambda s: datetime.datetime.strptime(s, '%Y-%m-%d'),
-                    default='2017-06-31',
+                    default=today.strftime("%Y-%m-%d"),
                     help='date to cut-off in format YYYY-MM-DD (default:  %(default)s)')
 
 args = parser.parse_args()
@@ -119,7 +122,6 @@ args = parser.parse_args()
 
 p = CollectPackageName(args.repo_dir, args.distro, args.min_packages,  args.cutoff_date)
 
-#executor = DebugExecutor(p.collect_packages())
 executor = MoveExecutor(args.distro, p.collect_packages())
 
 executor.move_it()

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list