Alter cvs fetching.. when date isnt set, set it to today.
authorChris Larson <clarson@kergoth.com>
Thu, 11 Mar 2004 18:51:14 +0000 (18:51 +0000)
committerChris Larson <clarson@kergoth.com>
Thu, 11 Mar 2004 18:51:14 +0000 (18:51 +0000)
bin/oe/fetch.py

index 5c19ac7..d14c6fb 100644 (file)
@@ -251,7 +251,7 @@ class Cvs(Fetch):
                if 'date' in parm:
                        date = parm['date']
                else:
-                       date = ""
+                       date = oe.data.getVar("CVSDATE", d, 1) or oe.data.getVar("DATE", d, 1)
 
                return os.path.join(oe.data.getVar("DL_DIR", d, 1),oe.data.expand('%s_%s_%s_%s.tar.gz' % (string.replace(module, '/', '.'), host, tag, date), d))
        localpath = staticmethod(localpath)
@@ -294,7 +294,7 @@ class Cvs(Fetch):
                        if 'date' in parm:
                                date = parm['date']
                        else:
-                               date = ""
+                               date = oe.data.getVar("CVSDATE", d, 1) or oe.data.getVar("DATE", d, 1)
 
                        if "method" in parm:
                                method = parm["method"]