Projects
Kolab:Winterfell
roundcubemail
0006-Skip-js-deps-installation-if-there-s-no-js...
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0006-Skip-js-deps-installation-if-there-s-no-jsdeps.json-.patch of Package roundcubemail (Revision 76)
Currently displaying revision
76
,
Show latest
From 6d53c6b9eb61c8eb797e4e87526e3826e8405de5 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Tue, 27 Jun 2017 17:34:46 +0200 Subject: [PATCH 06/14] Skip js deps installation if there's no jsdeps.json and install-jsdeps.sh --- bin/installto.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/bin/installto.sh b/bin/installto.sh index 45fc8f0b0..c47a8272a 100755 --- a/bin/installto.sh +++ b/bin/installto.sh @@ -100,13 +100,18 @@ if (strtolower($input) == 'y') { } // check if js-deps are up-to-date - $jsdeps = json_decode(file_get_contents("$target_dir/jsdeps.json")); - $package = $jsdeps->dependencies[0]; - $dest_file = $target_dir . '/' . $package->dest; - if (!file_exists($dest_file) || sha1_file($dest_file) !== $package->sha1) { - echo "Installing JavaScript dependencies..."; - system("cd $target_dir && bin/install-jsdeps.sh"); - echo "done.\n\n"; + if (file_exists("$target_dir/jsdeps.json") && file_exists("$target_dir/bin/install-jsdeps.sh")) { + $jsdeps = json_decode(file_get_contents("$target_dir/jsdeps.json")); + $package = $jsdeps->dependencies[0]; + $dest_file = $target_dir . '/' . $package->dest; + if (!file_exists($dest_file) || sha1_file($dest_file) !== $package->sha1) { + echo "Installing JavaScript dependencies..."; + system("cd $target_dir && bin/install-jsdeps.sh"); + echo "done.\n\n"; + } + } + else { + echo "JavaScript dependencies installation skipped...\n"; } echo "Running update script at target...\n"; -- 2.13.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.