Skip to contentSkip to conversation

npm fetcher: fix unknown variable name.

PATCH New Ismo Puustinen 1 participant 1 message Jun 28, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 npm fetcher: fix unknown variable name.

'mirrortarball' is supposed to be a local variable to the function.

---
 lib/bb/fetch2/npm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/fetch2/npm.py +1 -1
index 5f79972..f2e7983 100644
@@ -92,7 +92,7 @@ class Npm(FetchMethod):
 
         ud.write_tarballs = ((d.getVar("BB_GENERATE_MIRROR_TARBALLS") or "0") != "0")
         mirrortarball = 'npm_%s-%s.tar.xz' % (ud.pkgname, ud.version)
-        mirrortarball = ud.mirrortarball.replace('/', '-')
+        mirrortarball = mirrortarball.replace('/', '-')
         ud.fullmirror = os.path.join(d.getVar("DL_DIR"), mirrortarball)
         ud.mirrortarballs = [mirrortarball]
 
Signature · 1 line
2.9.4