summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/archiver.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 35e541194c..058ba63437 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -146,7 +146,12 @@ python do_ar_original() {
146 fetch.unpack(tmpdir, (url,)) 146 fetch.unpack(tmpdir, (url,))
147 147
148 os.chdir(tmpdir) 148 os.chdir(tmpdir)
149 tarname = os.path.join(ar_outdir, basename + '.tar.gz') 149 # We split on '+' to chuck any annoying AUTOINC+ in the revision.
150 try:
151 src_rev = bb.fetch2.get_srcrev(d).split('+')[-1][:10]
152 except:
153 src_rev = 'NOREV'
154 tarname = os.path.join(ar_outdir, basename + '.' + src_rev + '.tar.gz')
150 tar = tarfile.open(tarname, 'w:gz') 155 tar = tarfile.open(tarname, 'w:gz')
151 tar.add('.') 156 tar.add('.')
152 tar.close() 157 tar.close()