Browse Source

Fixed logic of prompt

bugfixes
gau1991 10 years ago
parent
commit
a484aa3999
  1. 4
      ee/cli/plugins/stack_upgrade.py
  2. 4
      ee/core/aptget.py

4
ee/cli/plugins/stack_upgrade.py

@ -39,10 +39,10 @@ class EEStackUpgradeController(CementBaseController):
Log.info(self, "During package update process non nginx-cached"
" parts of your site may remain down")
# Check prompt
if (self.app.pargs.no_prompt):
if (not self.app.pargs.no_prompt):
start_upgrade = input("Do you want to continue:[y/N]")
if start_upgrade != "Y" and start_upgrade != "y":
Log.error(self, "Not starting package update")
# Update packages
Log.info("Updating packages, please wait...")
Log.info(self, "Updating packages, please wait...")
EEAptGet.dist_upgrade(self)

4
ee/core/aptget.py

@ -44,8 +44,8 @@ class EEAptGet():
if check_update == b'0\n':
Log.error(self, "No package updates available")
Log.info(self, "Following package updates are available:")
subprocess.Popen("apt-get -s dist-upgrade", shell=True,
executable="/bin/bash",
subprocess.Popen("apt-get -s dist-upgrade | grep \"^Inst\"",
shell=True, executable="/bin/bash",
stdout=sys.stdout).communicate()
except Exception as e:

Loading…
Cancel
Save