@@ -35,7 +35,7 @@ var fs = require("fs");
35
35
var _ = require ( 'underscore' ) ;
36
36
var arangodb = require ( "org/arangodb" ) ;
37
37
var db = arangodb . db ;
38
- var download = require ( " internal" ) . download ;
38
+ var internal = require ( ' internal' ) ;
39
39
40
40
var throwFileNotFound = arangodb . throwFileNotFound ;
41
41
var throwDownloadError = arangodb . throwDownloadError ;
@@ -245,7 +245,7 @@ function processGithubRepository (source) {
245
245
var tempFile = fs . getTempFile ( "downloads" , false ) ;
246
246
247
247
try {
248
- var result = download ( url , "" , {
248
+ var result = internal . download ( url , "" , {
249
249
method : "get" ,
250
250
followRedirects : true ,
251
251
timeout : 30
@@ -298,7 +298,7 @@ function listJson (showPrefix, onlyDevelopment) {
298
298
contributors : doc . manifest . contributors || false ,
299
299
license : doc . manifest . license ,
300
300
version : doc . version ,
301
- path : fs . join ( fs . makeAbsolute ( doc . root ) , doc . path ) ,
301
+ path : fs . join ( fs . makeAbsolute ( doc . root || internal . appPath ) , doc . path ) ,
302
302
config : getConfiguration ( doc . manifest . configuration , doc . options . configuration ) ,
303
303
deps : getDependencies ( doc . manifest . dependencies , doc . options . dependencies ) ,
304
304
scripts : getScripts ( doc . manifest . scripts ) ,
0 commit comments