From a9f0cd29cc2192271f0446595e7bdb2009e401e7 Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pj@pehjota.net>
Date: Mon, 25 May 2015 22:22:33 -0400
Subject: cmd/install: Cut Packages.gz from opkg src/gz lines

---
(limited to 'lib')

diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh
index a02a77c..e12435e 100644
--- a/lib/cmd/install.sh
+++ b/lib/cmd/install.sh
@@ -166,8 +166,8 @@ cmd_install_find_pkgs()
 			'src/gz') gzip=true;;
 			*) continue;;
 		esac
-		printf '%s %s %s\n' "${opt}" "${feed_idx}" "${feed%/Packages}" \
-			>&${opkg_conf_fd}
+		printf '%s %s %s\n' "${opt}" "${feed_idx}" \
+			"${feed%/Packages*}" >&${opkg_conf_fd}
 		feed_download "${feed}" ${gzip} \
 			>"${chroot}/var/lib/opkg/lists/${feed_idx}"
 		cmd_install_feed_url="${feed%/*}"
--
cgit v0.9.1