Skip to content

Commit

Permalink
luci-app-opkg: add warning about upgrading packages
Browse files Browse the repository at this point in the history
It is a well-known fact that opkg doesn't check ABI-compatibility between dependencies and upgrading packages in a stable release is therefore not recommended. This commit adds a warning which should help especially new users find more information on why this is and avoiding soft-bricking their device.

Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
  • Loading branch information
dannil committed Feb 20, 2024
1 parent c8cddc3 commit 1594bd6
Show file tree
Hide file tree
Showing 39 changed files with 4,535 additions and 4,144 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,12 @@ function display(pattern)
var src = packages[currentDisplayMode === 'updates' ? 'installed' : currentDisplayMode],
table = document.querySelector('#packages'),
pagers = document.querySelectorAll('.controls > .pager'),
updates_warning = document.querySelector('#updates-warning'),
i18n_filter = null;

var updatesWarningDisplay = currentDisplayMode !== 'updates' ? 'none' : '';
updates_warning.style.display = updatesWarningDisplay;

currentDisplayRows.length = 0;

if (typeof(pattern) === 'string' && pattern.length > 0)
Expand Down Expand Up @@ -1212,6 +1216,13 @@ return view.extend({
E('li', { 'data-mode': 'updates', 'class': 'installed cbi-tab-disabled', 'click': handleMode }, E('a', { 'href': '#' }, [ _('Updates') ]))
]),

E('div', { 'id': 'updates-warning', 'class': 'alert-message warning', 'style': 'display:none' }, [
E('p', _('Warning! Upgrading packages may cause serious problems, including soft-bricking your device!')),
E('p', _('See <a %s">explanation on wiki</a> why caution is advised.').format(
'href="https://openwrt.org/meta/infobox/upgrade_packages_warning" target="_blank" rel="noreferrer"'
))
]),

E('div', { 'class': 'controls', 'style': 'display:none' }, [
E('div', { 'class': 'pager center' }, [
E('button', { 'class': 'btn cbi-button-neutral prev', 'aria-label': _('Previous page'), 'click': handlePage }, [ '«' ]),
Expand Down
228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/ar/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/bg/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/bn_BD/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/ca/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/cs/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/da/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/de/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/el/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/en/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/es/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/fa/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/fi/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/fr/opkg.po

Large diffs are not rendered by default.

232 changes: 121 additions & 111 deletions applications/luci-app-opkg/po/he/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/hi/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/hu/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/it/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/ja/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/ko/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/lt/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/mr/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/ms/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/nb_NO/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/nl/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/pl/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/pt/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/pt_BR/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/ro/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/ru/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/sk/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/sv/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/templates/opkg.pot

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/tr/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/uk/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/ur/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/vi/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/zh_Hans/opkg.po

Large diffs are not rendered by default.

228 changes: 119 additions & 109 deletions applications/luci-app-opkg/po/zh_Hant/opkg.po

Large diffs are not rendered by default.

0 comments on commit 1594bd6

Please sign in to comment.