summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/recipetool/create.py2
-rw-r--r--scripts/lib/scriptutils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index e99e0714bf..f9dda3c2f9 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -690,7 +690,7 @@ def create_recipe(args):
690 srcpvprefix = 'svnr' 690 srcpvprefix = 'svnr'
691 else: 691 else:
692 srcpvprefix = scheme 692 srcpvprefix = scheme
693 lines_before.append('PV = "%s+%s${SRCPV}"' % (realpv or '1.0', srcpvprefix)) 693 lines_before.append('PV = "%s+%s"' % (realpv or '1.0', srcpvprefix))
694 pv_srcpv = True 694 pv_srcpv = True
695 if not args.autorev and srcrev == '${AUTOREV}': 695 if not args.autorev and srcrev == '${AUTOREV}':
696 if os.path.exists(os.path.join(srctree, '.git')): 696 if os.path.exists(os.path.join(srctree, '.git')):
diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py
index f433106c9a..f23e53cba9 100644
--- a/scripts/lib/scriptutils.py
+++ b/scripts/lib/scriptutils.py
@@ -177,7 +177,7 @@ def fetch_url(tinfoil, srcuri, srcrev, destdir, logger, preserve_tmp=False, mirr
177 f.write('BB_STRICT_CHECKSUM = "ignore"\n') 177 f.write('BB_STRICT_CHECKSUM = "ignore"\n')
178 f.write('SRC_URI = "%s"\n' % srcuri) 178 f.write('SRC_URI = "%s"\n' % srcuri)
179 f.write('SRCREV = "%s"\n' % srcrev) 179 f.write('SRCREV = "%s"\n' % srcrev)
180 f.write('PV = "0.0+${SRCPV}"\n') 180 f.write('PV = "0.0+"\n')
181 f.write('WORKDIR = "%s"\n' % tmpworkdir) 181 f.write('WORKDIR = "%s"\n' % tmpworkdir)
182 # Set S out of the way so it doesn't get created under the workdir 182 # Set S out of the way so it doesn't get created under the workdir
183 f.write('S = "%s"\n' % os.path.join(tmpdir, 'emptysrc')) 183 f.write('S = "%s"\n' % os.path.join(tmpdir, 'emptysrc'))