diff options
| author | Jeff Carr <[email protected]> | 2025-10-24 02:36:25 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-24 02:36:25 -0500 |
| commit | d858946501f58a932521b05534c0a1717476adba (patch) | |
| tree | 7ab0bdc145220ef44306b15211d46ddae7cfe447 /doUpgrade.go | |
| parent | 2ae3b613b8e1cac099eb029ad1baa18cc72bec6d (diff) | |
try to fix .deb build counter
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 |
