#19668: Packages with a '.' in name cannot be installed/removed by opkg
-----------------------+----------------------------------
  Reporter:  thess     |      Owner:  developers
      Type:  defect    |     Status:  new
  Priority:  highest   |  Milestone:  Chaos Calmer (trunk)
 Component:  packages  |    Version:  Trunk
Resolution:            |   Keywords:
-----------------------+----------------------------------

Comment (by anonymous):

 Two lines originating from r42470 form the package name by cutting at the
 first dot. If package name contains dot, that leads to wrong name.

        name=$(echo $(basename $1) | cut -d. -f1)

 https://dev.openwrt.org/browser/trunk/package/base-
 files/files/lib/functions.sh#L168
 https://dev.openwrt.org/browser/trunk/package/base-
 files/files/lib/functions.sh#L178

 The error at github shows what happens: "libusb-1.control" instead of
 "libusb-1.0.control":
 {{{
 root@OpenWrt:~# opkg install libusb-1.0
  Installing libusb-1.0 (1.0.19-1) to root...
  Downloading
 
http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/base/libusb-1.0_1.0.19-1_ramips_24kec.ipk.
  Configuring libusb-1.0.
  grep: /usr/lib/opkg/info/libusb-1.control: No such file or directory
  cat: can't open '/usr/lib/opkg/info/libusb-1.list': No such file or
 directory
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/19668#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to