diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2007-11-17 22:54:37 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2007-11-17 22:54:37 +0000 |
commit | 6ab4071912b1e6e93147d4ba538f6780986e0683 (patch) | |
tree | 7fee2cbe0c863a0c4567e1758043a7c6c3d0fe29 /lib/bb/fetch/svn.py | |
parent | e1df62ac1aa1da88dfe3d80d917386f47627a5aa (diff) | |
download | bitbake-6ab4071912b1e6e93147d4ba538f6780986e0683.tar.gz |
Fetcher SRCREV handling updates, improvements and fixes from Poky, typo fix for bin/bitbake
Diffstat (limited to 'lib/bb/fetch/svn.py')
-rw-r--r-- | lib/bb/fetch/svn.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/bb/fetch/svn.py b/lib/bb/fetch/svn.py index 95b21fe20..5e5b31b3a 100644 --- a/lib/bb/fetch/svn.py +++ b/lib/bb/fetch/svn.py @@ -62,19 +62,16 @@ class Svn(Fetch): ud.revision = "" else: # - # ***Nasty hacks*** + # ***Nasty hack*** # If DATE in unexpanded PV, use ud.date (which is set from SRCDATE) - # Will warn people to switch to SRCREV here - # - # How can we tell when a user has overriden SRCDATE? - # check for "get_srcdate" in unexpanded SRCREV - ugly + # Should warn people to switch to SRCREV here # pv = data.getVar("PV", d, 0) if "DATE" in pv: ud.revision = "" else: - rev = data.getVar("SRCREV", d, 0) - if rev and "get_srcrev" in rev: + rev = Fetch.srcrev_internal_helper(ud, d) + if rev is True: ud.revision = self.latest_revision(url, ud, d) ud.date = "" elif rev: @@ -199,8 +196,9 @@ class Svn(Fetch): def _sortable_revision(self, url, ud, d): """ Return a sortable revision number which in our case is the revision number - (use the cached version to avoid network access) """ - return self.latest_revision(url, ud, d) + return self._build_revision(url, ud, d) + def _build_revision(self, url, ud, d): + return ud.revision |