diff options
Diffstat (limited to 'doUpgrade.go')
| -rw-r--r-- | doUpgrade.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doUpgrade.go b/doUpgrade.go index 81027ff..b04ce61 100644 --- a/doUpgrade.go +++ b/doUpgrade.go @@ -36,7 +36,9 @@ func doUpgrade() error { return nil } - if !argv.DryRun { + // if !argv.DryRun { + // } + if areSuperuser() { checkSuperuser() debian.AptUpdate() // try to re-init due to new apt lists @@ -61,6 +63,10 @@ func doUpgrade() error { for p := range me.machine.Wit.IterByPackage() { if me.machine.WillUpgrade(p) { + if !areSuperuser() { + log.Info("Would install here but you are not root") + continue + } if argv.DryRun { log.Info("Would install here without --dry-run") continue |
