#21931: Could not generate file sha256 hash for file://
-----------------------+------------------------
 Reporter:  Xuefer     |      Owner:  developers
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:
Component:  toolchain  |    Version:  Trunk
 Keywords:             |
-----------------------+------------------------
 {{{
 Copying mbedtls-1.3.16-gpl.tgz from /home/xuefer/src/openwrt/dl-
 old/mbedtls-1.3.16-gpl.tgz
 Could not generate file hash.
 }}}
 broken by changeset [48259]

 this changeset assume $hash_cmd is used for pipe line not argument. but
 for local file:// mirror, it's system("$hash_cmd '$target/$filename.dl'
 ...


 suggested fix:
 {{{
 -                       if (system("$hash_cmd '$target/$filename.dl' >
 '$target/$filename.hash'")) {
 +                       if (system("cat '$target/$filename.dl' | $hash_cmd
 > '$target/$filename.hash'")) {
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/21931>
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