From 463f6823de774fb982b35df584d4fd0ee2d7cd72 Mon Sep 17 00:00:00 2001 From: Licaon_Kter Date: Wed, 8 Apr 2020 10:25:53 +0000 Subject: [PATCH] Import - sudo refresh repos too and use the newer npm --- fdroidserver/import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/import.py b/fdroidserver/import.py index 23d06d57..40746b99 100644 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@ -164,7 +164,7 @@ def main(): package_json = os.path.join(tmp_importer_dir, 'package.json') # react-native pubspec_yaml = os.path.join(tmp_importer_dir, 'pubspec.yaml') # flutter if os.path.exists(package_json): - build.sudo = ['apt-get install npm', 'npm install -g react-native-cli'] + build.sudo = ['apt-get update || apt-get update', 'apt-get install -t stretch-backports npm', 'npm install -g react-native-cli'] build.init = ['npm install'] with open(package_json) as fp: data = json.load(fp)