diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2008-07-27 07:44:26 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2008-07-27 07:44:26 +0000 |
commit | 7edb5f6d85e215fd2697672789add3108e4e76e5 (patch) | |
tree | a2031dfd524de6ffdef9019200c05d4ad82549c2 | |
parent | 9ba94cc8c0d0c178050c09e6b47bb5c0db408a7a (diff) | |
download | bitbake-7edb5f6d85e215fd2697672789add3108e4e76e5.tar.gz |
[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.
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | lib/bb/fetch/cvs.py | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -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) |