summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-package-manager/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2024-11-16 18:16:20 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2024-11-17 14:50:11 +0100
commitea8b7aa5ee2e9c07ea85918a3a35e37d4b170cd7 (patch)
tree46505b38b9d0ac4f3d463fd439989d93774a205a /applications/luci-app-package-manager/htdocs/luci-static/resources
parentcfa774ee72d12e1326933efd6eb8abc1ef61c9d5 (diff)
luci-app-package-manager: support new APK repositories.d configs
Support new APK repositories.d configs following OPKG was to better split distfeeds and customfeeds. Support for ""legacy"" repositories is kept to support migration period and to support custom scenario where user use this file instead. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'applications/luci-app-package-manager/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js b/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js
index 380ee76d82..d79ee985c9 100644
--- a/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js
+++ b/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js
@@ -865,8 +865,13 @@ function handleConfig(ev)
fs.list(base_dir).then(function(partials) {
var files = [];
- if (!L.hasSystemFeature('apk'))
- files.push(base_dir + '.conf')
+ if (L.hasSystemFeature('apk')) {
+ files.push(base_dir + '/' + 'repositories.d/customfeeds.list',
+ base_dir + '/' + 'repositories.d/distfeeds.list'
+ )
+ } else {
+ files.push(base_dir + '.conf')
+ }
for (var i = 0; i < partials.length; i++) {
if (partials[i].type == 'file') {