armbian-upgrade: use apt-get to silence apt CLI-warning noise#9998
Conversation
Plain `apt` prints "WARNING: apt does not have a stable CLI interface. Use with caution in scripts." on every non-interactive invocation, so each run of armbian-upgrade emitted it twice. apt-get is the stable scripting interface and behaves identically here (update/upgrade/clean/autoremove). Signed-off-by: Igor Pecovnik <igor@armbian.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Changesapt-get migration in armbian-upgrade
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
/usr/bin/armbian-upgradecalls plainapt, which printson every non-interactive invocation — so each upgrade run emits it twice (once for
apt update, once forapt -y upgrade), cluttering build logs and user output.Switch to
apt-get, the stable scripting interface, which behaves identically forupdate/upgrade/clean/autoremovebut prints no such warning.Not addressed here
The separate
[ ! ] repository switch returned non-zeroline is emitted at runtime (armbian-config repo handling), not by this script — out of scope for this change.Summary by CodeRabbit