mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
recipes/classes/scripts: Drop SRCPV usage in OE-Core
Now that SRCPV isn't needed we can simplify things in a few places... (From OE-Core rev: 843f82a246a535c353e08072f252d1dc78217872) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -690,7 +690,7 @@ def create_recipe(args):
|
||||
srcpvprefix = 'svnr'
|
||||
else:
|
||||
srcpvprefix = scheme
|
||||
lines_before.append('PV = "%s+%s${SRCPV}"' % (realpv or '1.0', srcpvprefix))
|
||||
lines_before.append('PV = "%s+%s"' % (realpv or '1.0', srcpvprefix))
|
||||
pv_srcpv = True
|
||||
if not args.autorev and srcrev == '${AUTOREV}':
|
||||
if os.path.exists(os.path.join(srctree, '.git')):
|
||||
|
||||
@@ -177,7 +177,7 @@ def fetch_url(tinfoil, srcuri, srcrev, destdir, logger, preserve_tmp=False, mirr
|
||||
f.write('BB_STRICT_CHECKSUM = "ignore"\n')
|
||||
f.write('SRC_URI = "%s"\n' % srcuri)
|
||||
f.write('SRCREV = "%s"\n' % srcrev)
|
||||
f.write('PV = "0.0+${SRCPV}"\n')
|
||||
f.write('PV = "0.0+"\n')
|
||||
f.write('WORKDIR = "%s"\n' % tmpworkdir)
|
||||
# Set S out of the way so it doesn't get created under the workdir
|
||||
f.write('S = "%s"\n' % os.path.join(tmpdir, 'emptysrc'))
|
||||
|
||||
Reference in New Issue
Block a user