Skip to content
Permalink
Browse files

Fix upgrade dry-run display

  • Loading branch information...
chrisgraham committed Jul 1, 2019
1 parent 321f9ec commit 547ddf4e93c977c6dab2af0981c0a8094dfbe0e0
Showing with 6 additions and 6 deletions.
  1. +6 −6 sources/upgrade.php
@@ -355,9 +355,9 @@ function upgrade_script()
// Addon registry file, for installed addon...
if (substr($upgrade_file['path'], -1) != '/') {
if ($popup_simple_extract) {
$data['todo'][] = array($upgrade_file['path'], $upgrade_file['mtime'], $offset + 512, $upgrade_file['size'], ($upgrade_file['mode'] & 0002) != 0);
} else {
$data['todo'][] = array($upgrade_file['path'], $upgrade_file['mtime'], $offset + 512, $upgrade_file['size'], ($upgrade_file['mode'] & 0002) != 0);
if (!$popup_simple_extract) {
$file_data = tar_get_file($upgrade_resource, $upgrade_file['path']);
if (!$dry_run) {
afm_make_file($upgrade_file['path'], $file_data['data'], ($file_data['mode'] & 0002) != 0);
@@ -388,9 +388,9 @@ function upgrade_script()
afm_make_directory($upgrade_file['path'], false, true);
}
} else {
if ($popup_simple_extract) {
$data['todo'][] = array($upgrade_file['path'], $upgrade_file['mtime'], $offset + 512, $upgrade_file['size'], ($upgrade_file['mode'] & 0002) != 0);
} else {
$data['todo'][] = array($upgrade_file['path'], $upgrade_file['mtime'], $offset + 512, $upgrade_file['size'], ($upgrade_file['mode'] & 0002) != 0);
if (!$popup_simple_extract) {
$file_data = tar_get_file($upgrade_resource, $upgrade_file['path']);
if (!$dry_run) {
if (!file_exists(get_file_base() . '/' . dirname($upgrade_file['path']))) {

0 comments on commit 547ddf4

Please sign in to comment.
You can’t perform that action at this time.