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 <daniel.nilsson94@outlook.com>
  • Loading branch information
dannil committed Mar 15, 2024
1 parent 72173cc commit d5b79a0
Show file tree
Hide file tree
Showing 39 changed files with 1,492 additions and 1,142 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,14 @@ return view.extend({

E('h2', {}, _('Software')),

E('div', { 'class': 'cbi-map-descr' }, [
E('span', _('Install additional software and upgrade existing packages with opkg.')),
E('br'),
E('span', _('<strong>Warning!</strong> Package operations can <a %s>break your system</a>.').format(
'href="https://openwrt.org/meta/infobox/upgrade_packages_warning" target="_blank" rel="noreferrer"'
))
]),

E('div', { 'class': 'controls' }, [
E('div', {}, [
E('label', {}, _('Disk space') + ':'),
Expand Down
69 changes: 39 additions & 30 deletions applications/luci-app-opkg/po/ar/opkg.po
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ msgstr ""
msgid "%s used (%1024mB used of %1024mB, %1024mB free)"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1155
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1135
msgid ""
"<strong>Warning!</strong> Package operations can <a %s>break your system</a>."
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1163
msgid "Actions"
msgstr "إجراءات"

Expand All @@ -27,7 +32,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:1218
msgid "Available"
msgstr "متاح"

Expand All @@ -51,11 +56,11 @@ msgstr ""
msgid "Cancel"
msgstr "إلغاء"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1142
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1150
msgid "Clear"
msgstr "إجلاء"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1159
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1167
msgid "Configure opkg…"
msgstr "تكوين opkg …"

Expand All @@ -65,31 +70,31 @@ 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:1236
msgid "Description"
msgstr "الوصف"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:755
msgid "Details for package <em>%h</em>"
msgstr "تفاصيل الحزمة <em>%h </em>"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1134
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1142
msgid "Disk space"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1030
msgid "Dismiss"
msgstr "إلغاء"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1164
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1172
msgid "Display LuCI translation packages"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1181
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1189
msgid "Display all available translation packages"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1167
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1175
msgid ""
"Display base translation packages and translation packages for already "
"installed languages only"
Expand All @@ -99,7 +104,7 @@ msgstr ""
msgid "Displaying %d-%d of %d"
msgstr "عرض d% -%d من %d"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1147
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1155
msgid "Download and install package"
msgstr "قم بتنزيل الحزمة وتثبيتها"

Expand All @@ -111,15 +116,15 @@ msgstr "أخطاء"
msgid "Executing package manager"
msgstr "تنفيذ مدير الحزم"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1139
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1147
msgid "Filter"
msgstr "مصفي"

#: applications/luci-app-opkg/root/usr/share/rpcd/acl.d/luci-app-opkg.json:3
msgid "Grant access to opkg management"
msgstr "منح حقوق الدخول لإدارة opkg"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1194
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1202
msgid "Hide all translation packages"
msgstr ""

Expand All @@ -129,13 +134,17 @@ msgstr ""
msgid "Install"
msgstr "تثبيت"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1133
msgid "Install additional software and upgrade existing packages with opkg."
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:780
msgid "Install suggested translation packages as well"
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:1219
msgid "Installed"
msgstr "مثبت"

Expand Down Expand Up @@ -173,8 +182,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:1227
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1245
msgid "Next page"
msgstr "الصفحة التالية"

Expand All @@ -198,7 +207,7 @@ msgstr "غير متوفر"
msgid "Not installed"
msgstr "غير مثبت"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1150
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1158
msgid "OK"
msgstr "موافق"

Expand All @@ -208,16 +217,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:1233
msgid "Package name"
msgstr "اسم الحزمة"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1149
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1157
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:1225
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1243
msgid "Previous page"
msgstr "الصفحة السابقة"

Expand Down Expand Up @@ -277,7 +286,7 @@ msgstr "جارٍ حفظ بيانات التكوين …"
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:1235
msgid "Size (.ipk)"
msgstr "الحجم (.ipk)"

Expand Down Expand Up @@ -316,7 +325,7 @@ msgid ""
msgstr ""
"إصدار المستودع للحزمة <em>%h </em> غير متوافق ، يتطلب %s ولكن يتوفر%s فقط."

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1141
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1149
msgid "Type to filter…"
msgstr "اكتب للتصفية …"

Expand All @@ -332,11 +341,11 @@ msgstr "غير قادر على قراءة٪ s: %s%"
msgid "Unable to save %s: %s"
msgstr "غير قادر على حفظ٪ %s% : s"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1157
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1165
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:1220
msgid "Updates"
msgstr "التحديثات"

Expand All @@ -345,13 +354,13 @@ msgstr "التحديثات"
msgid "Upgrade…"
msgstr "تحديث النظام…"

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1158
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1166
msgid "Upload Package…"
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:1234
msgid "Version"
msgstr "الإصدار"

Expand All @@ -364,24 +373,24 @@ 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:1190
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1198
msgctxt "Display translation packages"
msgid "all"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1177
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1185
msgctxt "Display translation packages"
msgid "filtered"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1203
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1211
msgctxt "Display translation packages"
msgid "none"
msgstr ""

#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:673
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:934
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1135
#: applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js:1143
msgid "unknown"
msgstr "غير معروف"

Expand Down
Loading

0 comments on commit d5b79a0

Please sign in to comment.