diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 6443303ca2..376ac9b1e1 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -620,6 +620,8 @@ def get_srcrev(d): | |||
620 | 620 | ||
621 | if len(scms) == 1 and len(urldata[scms[0]].names) == 1: | 621 | if len(scms) == 1 and len(urldata[scms[0]].names) == 1: |
622 | autoinc, rev = urldata[scms[0]].method.sortable_revision(scms[0], urldata[scms[0]], d, urldata[scms[0]].names[0]) | 622 | autoinc, rev = urldata[scms[0]].method.sortable_revision(scms[0], urldata[scms[0]], d, urldata[scms[0]].names[0]) |
623 | if len(rev) > 10: | ||
624 | rev = rev[:10] | ||
623 | if autoinc: | 625 | if autoinc: |
624 | return "AUTOINC+" + rev | 626 | return "AUTOINC+" + rev |
625 | return rev | 627 | return rev |
@@ -636,6 +638,8 @@ def get_srcrev(d): | |||
636 | ud = urldata[scm] | 638 | ud = urldata[scm] |
637 | for name in ud.names: | 639 | for name in ud.names: |
638 | autoinc, rev = ud.method.sortable_revision(scm, ud, d, name) | 640 | autoinc, rev = ud.method.sortable_revision(scm, ud, d, name) |
641 | if len(rev) > 10: | ||
642 | rev = rev[:10] | ||
639 | if autoinc and not seenautoinc: | 643 | if autoinc and not seenautoinc: |
640 | rev = "AUTOINC+" + rev | 644 | rev = "AUTOINC+" + rev |
641 | seenautoinc | 645 | seenautoinc |