From 7edb5f6d85e215fd2697672789add3108e4e76e5 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 27 Jul 2008 07:44:26 +0000 Subject: [cvs] Allow to checkout by date and time With putting YYYYYMMDDHHmm into the SRCDATE bitbake will checkout using "-D YYYYMMDD HH:mm UTC". Be careful when you switch from SRCDATE with time and without to always get updatable packages. --- ChangeLog | 1 + lib/bb/fetch/cvs.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 44889e3e6..2ad0f713f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -142,6 +142,7 @@ Changes in Bitbake 1.9.x: - Correctly add a task override in the form task-TASKNAME. - Revert the '-' character fix in class names since it breaks things - When a regexp fails to compile for PACKAGES_DYNAMIC, print a more useful error (#4444) + - Allow to checkout CVS by Date and Time. Just add HHmm to the SRCDATE. Changes in Bitbake 1.8.0: - Release 1.7.x as a stable series diff --git a/lib/bb/fetch/cvs.py b/lib/bb/fetch/cvs.py index c4ccf4303..aa55ad8bf 100644 --- a/lib/bb/fetch/cvs.py +++ b/lib/bb/fetch/cvs.py @@ -118,7 +118,11 @@ class Cvs(Fetch): if 'norecurse' in ud.parm: options.append("-l") if ud.date: - options.append("-D \"%s UTC\"" % ud.date) + # treat YYYYMMDDHHMM specially for CVS + if len(ud.date) == 12: + options.append("-D \"%s %s:%s UTC\"" % (ud.date[0:8], ud.date[8:10], ud.date[10:12])) + else: + options.append("-D \"%s UTC\"" % ud.date) if ud.tag: options.append("-r %s" % ud.tag) -- cgit 1.2.3-korg