diff --git a/HelperResources/CommonResources b/HelperResources/CommonResources index 9210ef9..043f912 100755 --- a/HelperResources/CommonResources +++ b/HelperResources/CommonResources @@ -461,11 +461,9 @@ updateActiveFile () fi # the location of the active file must exist - #### TODO: accommodate moved style sheet or skip file (not an error) if active does not exist ????????? local pathToActive=$(dirname "$activeFile") if [ ! -e "$pathToActive" ]; then - logMessage "WARNING path to $activeFile does not exist - skiping patch" - ######### setInstallFailed $EXIT_FILE_SET_ERROR "path to $activeFile does not exist" + logMessage "path to $activeFile does not exist - skiping patch" return 1 fi @@ -491,9 +489,13 @@ updateActiveFile () # then in FileSets (previous location of version-indepencent files) elif [ -e "$pkgFileSets/$baseName" ]; then sourceFile="$pkgFileSets/$baseName" - # nothing found - can't continue else - setInstallFailed $EXIT_FILE_SET_ERROR "no soure file for $baseName" + # if directory for file exists but no sourceFile - can't continue + if [ -e $( dirname "$activeFile" ) ]; then + setInstallFailed $EXIT_FILE_SET_ERROR "no soure file for $activeFile" + else + logMessage "enclosing directory for $activeFile not found - skipping update" + fi return 1 fi fi @@ -1558,8 +1560,7 @@ if [ $scriptAction != 'UNINSTALL' ]; then rm -f "$currentPatchFile" if ! [ -e "$activeFile" ] ; then - #### TODO: ??? patchErrors+=( "$baseName no active file for patch" ) - logMessage "WARNING: $baseName no active file for patch - skipping" + logMessage "no active file $activeFile - skipping patch" continue fi @@ -1579,16 +1580,19 @@ if [ $scriptAction != 'UNINSTALL' ]; then fi patchOk=false + skipPatch=false if $thisPackageInList; then - # only this package modified active file - # ignore any previous patch and patch .orig file if ! $otherPackagesInList ; then + # only this package modified active file + # ignore any previous patch and patch .orig file if [ -e "$activeFile.orig" ]; then cp "$activeFile.orig" "$tempActiveFile" patchOk=true + # use active file if no .orig exists else - patchErrors+=( "$baseName no .orig file for patch" ) + cp "$activeFile" "$tempActiveFile" + patchOk=true fi # this and others have modified the active file # attempt to remove the previous patch for this package @@ -1635,7 +1639,7 @@ if [ $scriptAction != 'UNINSTALL' ]; then patchErrors+=( "$baseName patch unsuccesful" ) rm -f "$forwardPatched" fi - else + elif ! $skipPatch ; then patchErrors+=( "$baseName no patch source" ) fi done # for activeFile diff --git a/ReadMe b/ReadMe index 2908ab6..5ea8ee1 100644 --- a/ReadMe +++ b/ReadMe @@ -112,7 +112,7 @@ By far, the easiest way to install SetupHelper is the "blind install" Another way to install SetupHelper is to use the following from the command line of the GX device: wget -qO - https://github.com/kwindrem/SetupHelper/archive/latest.tar.gz | tar -xzf - -C /data - mv /data/SetupHelper-latest /data/SetupHelper + mv -f /data/SetupHelper-latest /data/SetupHelper /data/SetupHelper/setup Once SetupHelper is installed, updates to it and other packages can be performed through the GUI diff --git a/blindInstall/SetupHelperVersion b/blindInstall/SetupHelperVersion index 92c0d2a..c2173e3 100644 --- a/blindInstall/SetupHelperVersion +++ b/blindInstall/SetupHelperVersion @@ -1 +1 @@ -v8.20 +v8.21 diff --git a/changes b/changes index 7489ea7..b486eb3 100644 --- a/changes +++ b/changes @@ -1,3 +1,6 @@ +v8.21: + fixed: patch error for some files if package is reinstalled + v8.20: add support for v3.50~22 (HTML style sheet in different location) add dbus-pi package to defaults list diff --git a/venus-data-UninstallPackages.tgz b/venus-data-UninstallPackages.tgz index 9f9f3f8..02b6720 100644 Binary files a/venus-data-UninstallPackages.tgz and b/venus-data-UninstallPackages.tgz differ diff --git a/venus-data.tgz b/venus-data.tgz index 1e1b3b1..ea0df18 100644 Binary files a/venus-data.tgz and b/venus-data.tgz differ diff --git a/version b/version index 92c0d2a..c2173e3 100644 --- a/version +++ b/version @@ -1 +1 @@ -v8.20 +v8.21