Skip to content

Commit

Permalink
luci-app-opkg: add warning about modifying 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. In addition, installing and removing packages blindly may result in rendering the device inaccessible as well, so caution should be taken when doing this.

This commit adds a warning which should help notify especially new users about these behaviors with a link to the wiki which advises to not upgrade packages.

Signed-off-by: Daniel Nilsson <[email protected]>
  • Loading branch information
dannil committed Feb 21, 2024
1 parent 06c0fbb commit 183819d
Show file tree
Hide file tree
Showing 39 changed files with 883 additions and 420 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,13 @@ return view.extend({
])
]),

E('div', { 'class': 'alert-message warning' }, [
E('p', _('Warning! Installing, removing, and upgrading packages may cause serious problems, including soft-bricking your device!')),
E('p', _('See <a %s">explanation on wiki</a> why especially upgrading should be avoided.').format(
'href="https://openwrt.org/meta/infobox/upgrade_packages_warning" target="_blank" rel="noreferrer"'
))
]),

E('ul', { 'class': 'cbi-tabmenu mode' }, [
E('li', { 'data-mode': 'available', 'class': 'available cbi-tab', 'click': handleMode }, E('a', { 'href': '#' }, [ _('Available') ])),
E('li', { 'data-mode': 'installed', 'class': 'installed cbi-tab-disabled', 'click': handleMode }, E('a', { 'href': '#' }, [ _('Installed') ])),
Expand Down
34 changes: 23 additions & 11 deletions applications/luci-app-opkg/po/ar/opkg.po
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ msgstr ""
msgid "Automatically remove unused dependencies"
msgstr "قم بإزالة التبعيات غير المستخدمة تلقائيًا"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1210
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1217
msgid "Available"
msgstr "متاح"

Expand Down Expand Up @@ -65,7 +65,7 @@ msgstr "التبعيات"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:750
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:938
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1228
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1235
msgid "Description"
msgstr "الوصف"

Expand Down Expand Up @@ -135,7 +135,7 @@ msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:299
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:522
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1211
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1218
msgid "Installed"
msgstr "مثبت"

Expand Down Expand Up @@ -173,8 +173,8 @@ msgstr "قم بتثبيت الحزمة يدويًا"
msgid "Needs upgrade"
msgstr "يحتاج إلى ترقية"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1219
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1237
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1226
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1244
msgid "Next page"
msgstr "الصفحة التالية"

Expand Down Expand Up @@ -208,16 +208,16 @@ msgstr "موافق"
msgid "OPKG Configuration"
msgstr "تكوين OPKG"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1225
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1232
msgid "Package name"
msgstr "اسم الحزمة"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1149
msgid "Package name or URL…"
msgstr "اسم الحزمة أو URL …"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1217
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1235
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1224
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1242
msgid "Previous page"
msgstr "الصفحة السابقة"

Expand Down Expand Up @@ -271,13 +271,19 @@ msgstr "إحفض"
msgid "Saving configuration data…"
msgstr "جارٍ حفظ بيانات التكوين …"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1211
msgid ""
"See <a %s\">explanation on wiki</a> why especially upgrading should be "
"avoided."
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:758
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:946
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1045
msgid "Size"
msgstr "مقاس"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1227
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1234
msgid "Size (.ipk)"
msgstr "الحجم (.ipk)"

Expand Down Expand Up @@ -336,7 +342,7 @@ msgstr "غير قادر على حفظ٪ %s% : s"
msgid "Update lists…"
msgstr "تحديث القوائم …"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1212
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1219
msgid "Updates"
msgstr "التحديثات"

Expand All @@ -351,7 +357,7 @@ msgstr "تحميل الحزمة …"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:757
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:945
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1226
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1233
msgid "Version"
msgstr "الإصدار"

Expand All @@ -364,6 +370,12 @@ msgstr "الإصدار غير متوافق"
msgid "Waiting for the <em>opkg %h</em> command to complete…"
msgstr "في انتظار إكمال أمر <em> opkg %h </em> …"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1210
msgid ""
"Warning! Installing, removing, and upgrading packages may cause serious "
"problems, including soft-bricking your device!"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1190
msgctxt "Display translation packages"
msgid "all"
Expand Down
34 changes: 23 additions & 11 deletions applications/luci-app-opkg/po/bg/opkg.po
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ msgstr ""
msgid "Automatically remove unused dependencies"
msgstr "Автоматично премахни неизползвани зависимости"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1210
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1217
msgid "Available"
msgstr "Налични"

Expand Down Expand Up @@ -68,7 +68,7 @@ msgstr "Зависимости"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:750
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:938
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1228
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1235
msgid "Description"
msgstr "Описание"

Expand Down Expand Up @@ -138,7 +138,7 @@ msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:299
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:522
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1211
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1218
msgid "Installed"
msgstr "Инсталирани"

Expand Down Expand Up @@ -176,8 +176,8 @@ msgstr "Ръчно инсталирай пакет"
msgid "Needs upgrade"
msgstr "Нуждаещ се от ъпгрейд"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1219
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1237
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1226
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1244
msgid "Next page"
msgstr "Следваща страница"

Expand Down Expand Up @@ -211,16 +211,16 @@ msgstr "ОК"
msgid "OPKG Configuration"
msgstr "OPKG Конфигурация"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1225
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1232
msgid "Package name"
msgstr "Име на пакет"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1149
msgid "Package name or URL…"
msgstr "Име на пакет или URL…"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1217
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1235
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1224
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1242
msgid "Previous page"
msgstr "Предишна страница"

Expand Down Expand Up @@ -274,13 +274,19 @@ msgstr "Запази"
msgid "Saving configuration data…"
msgstr "Запазване на конфигурация…"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1211
msgid ""
"See <a %s\">explanation on wiki</a> why especially upgrading should be "
"avoided."
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:758
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:946
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1045
msgid "Size"
msgstr "Размер"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1227
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1234
msgid "Size (.ipk)"
msgstr "Размер (.ipk)"

Expand Down Expand Up @@ -341,7 +347,7 @@ msgstr "Не може да се запази %s: %s"
msgid "Update lists…"
msgstr "Обновяване на списъци…"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1212
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1219
msgid "Updates"
msgstr "Обновления"

Expand All @@ -356,7 +362,7 @@ msgstr "Качване пакет…"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:757
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:945
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1226
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1233
msgid "Version"
msgstr "Версия"

Expand All @@ -369,6 +375,12 @@ msgstr "Несъвместима версия"
msgid "Waiting for the <em>opkg %h</em> command to complete…"
msgstr "Изчкаване <em>opkg %h</em> команда да приключи…"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1210
msgid ""
"Warning! Installing, removing, and upgrading packages may cause serious "
"problems, including soft-bricking your device!"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1190
msgctxt "Display translation packages"
msgid "all"
Expand Down
34 changes: 23 additions & 11 deletions applications/luci-app-opkg/po/bn_BD/opkg.po
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ msgstr ""
msgid "Automatically remove unused dependencies"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1210
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1217
msgid "Available"
msgstr ""

Expand Down Expand Up @@ -64,7 +64,7 @@ msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:750
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:938
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1228
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1235
msgid "Description"
msgstr "বর্ণনা"

Expand Down Expand Up @@ -134,7 +134,7 @@ msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:299
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:522
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1211
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1218
msgid "Installed"
msgstr ""

Expand Down Expand Up @@ -170,8 +170,8 @@ msgstr ""
msgid "Needs upgrade"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1219
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1237
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1226
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1244
msgid "Next page"
msgstr ""

Expand Down Expand Up @@ -205,16 +205,16 @@ msgstr ""
msgid "OPKG Configuration"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1225
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1232
msgid "Package name"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1149
msgid "Package name or URL…"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1217
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1235
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1224
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1242
msgid "Previous page"
msgstr ""

Expand Down Expand Up @@ -268,13 +268,19 @@ msgstr "সংরক্ষণ করুন"
msgid "Saving configuration data…"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1211
msgid ""
"See <a %s\">explanation on wiki</a> why especially upgrading should be "
"avoided."
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:758
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:946
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1045
msgid "Size"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1227
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1234
msgid "Size (.ipk)"
msgstr ""

Expand Down Expand Up @@ -331,7 +337,7 @@ msgstr ""
msgid "Update lists…"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1212
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1219
msgid "Updates"
msgstr ""

Expand All @@ -346,7 +352,7 @@ msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:757
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:945
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1226
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1233
msgid "Version"
msgstr "সংস্করণ"

Expand All @@ -359,6 +365,12 @@ msgstr ""
msgid "Waiting for the <em>opkg %h</em> command to complete…"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1210
msgid ""
"Warning! Installing, removing, and upgrading packages may cause serious "
"problems, including soft-bricking your device!"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1190
msgctxt "Display translation packages"
msgid "all"
Expand Down
Loading

0 comments on commit 183819d

Please sign in to comment.