| Summary: | opkg download tries to use a relative path from the feed when saving the file locally | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Yocto Project Subprojects] opkg | Reporter: | Paul Spangler <paul.spangler> | ||||
| Component: | opkg | Assignee: | Alejandro del Castillo <alejandro.delcastillo> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Undecided | ||||||
| Version: | 0.4.2 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | Don't know | |||||
| Attachments: |
|
||||||
Just want to mention here that this is still an issue with the latest version: # opkg --version opkg version 0.4.2 # opkg download kmscube Downloading http://archive.raspbian.org/raspbian/pool/main/k/kmscube/kmscube_0.0.0~git20170617-2_armhf.deb. Collected errors: * file_copy: unable to open `./pool/main/k/kmscube/kmscube_0.0.0~git20170617-2_armhf.deb': No such file or directory. * opkg_download_cmd: Failed to download kmscube. Fixed by Alex Stewart on e190d4bbc37d01a299cbb66d5d13f82e1dffbb3b |
Created attachment 3689 [details] Example reproduction feed Downloading a package from a feed that uses a directory structure for its packages results in opkg attempting to use the same directory structure locally. For example, the attached Packages file contains a single package with the following attribute: Filename: ../packages/empty_1.0.0-0_x64.ipk opkg is able to install from this feed successfully, but when downloading the package with `opkg download empty` it attempts to save the file using the same relative path as the Filename attribute instead of the current directory. Expectation (apt-get) --------------------- $ apt-get -v apt 1.2.19 (amd64) Supported modules: *Ver: Standard .deb *Pkg: Debian dpkg interface (Priority 30) Pkg: Debian APT solver interface (Priority -1000) S.L: 'deb' Debian binary tree S.L: 'deb-src' Debian source tree Idx: Debian Source Index Idx: Debian Package Index Idx: Debian Translation Index Idx: Debian dpkg status file Idx: Debian deb file Idx: Debian dsc file Idx: Debian control file Idx: EDSP scenario file $ apt-get download --allow-unauthenticated -o Acquire::ForceHash=md5sum empty WARNING: The following packages cannot be authenticated! empty:none Authentication warning overridden. Get:1 <server>/empty-package/feed empty 1.0.0-0 [586 B] Fetched 586 B in 0s (14.1 kB/s) $ ls *.ipk empty_1.0.0-0_none.ipk Actual Result (opkg) -------------------- # opkg -v opkg version 0.3.4 (libsolv 0.6.24) # opkg download empty Collected errors: * file_copy: unable to open `./../packages/empty_1.0.0-0_x64.ipk': No such file or directory. * opkg_download_cmd: Failed to download empty.