summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbaserockimport/exts/npm.to_lorry7
1 files changed, 6 insertions, 1 deletions
diff --git a/baserockimport/exts/npm.to_lorry b/baserockimport/exts/npm.to_lorry
index ab66f44..65e8e48 100755
--- a/baserockimport/exts/npm.to_lorry
+++ b/baserockimport/exts/npm.to_lorry
@@ -46,9 +46,14 @@ npm.load(function(er, npm) {
repoInfo = package.repository;
pathWithPkgName = "npm/" + packageName;
+ if (/^git\+/.test(repoInfo["url"]))
+ url = repoInfo["url"].replace(/^git\+/, "");
+ else
+ url = repoInfo["url"];
+
lorry = {};
lorry[pathWithPkgName] = {
- "url": repoInfo["url"],
+ "url": url,
"type": repoInfo["type"],
"x-products-npm": [packageName]
};