summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/metadata_scm.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/metadata_scm.bbclass b/meta/classes/metadata_scm.bbclass
index 8d3988ace8..ba0edf9486 100644
--- a/meta/classes/metadata_scm.bbclass
+++ b/meta/classes/metadata_scm.bbclass
@@ -54,11 +54,13 @@ def base_get_metadata_monotone_revision(path, d):
54 return monotone_revision 54 return monotone_revision
55 55
56def base_get_metadata_svn_revision(path, d): 56def base_get_metadata_svn_revision(path, d):
57 # This only works with older subversion. For newer versions
58 # this function will need to be fixed by someone interested
57 revision = "<unknown>" 59 revision = "<unknown>"
58 try: 60 try:
59 with open("%s/.svn/entries" % path) as f: 61 with open("%s/.svn/entries" % path) as f:
60 revision = f.readlines()[3].strip() 62 revision = f.readlines()[3].strip()
61 except IOError: 63 except IOError, IndexError:
62 pass 64 pass
63 return revision 65 return revision
64 66