downloader: fix "The cache has no package named xxxx"
downloader get the "arch" of a package via apt cache, that requests the
package is available in Debian sources. However, some packages which
have download url may not from Debian sources, that triggers an
exception "The cache has no package named xxxx".
Get the "arch" from filename other than apt cache for the packages
which are downloaded via url.
Test Plan:
Pass: downloader -b
Closes-Bug: 1990596
Signed-off-by: Yue Tao <email address hidden>
Change-Id: Ic30b64c69ae565b12571dab1472be15281e303ec
Reviewed: https:/ /review. opendev. org/c/starlingx /root/+ /859007 /opendev. org/starlingx/ root/commit/ 45ee30a95516ead 5d393a658999826 5ee9b268ec
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 45ee30a95516ead 5d393a658999826 5ee9b268ec
Author: Yue Tao <email address hidden>
Date: Fri Sep 23 09:46:27 2022 +0800
downloader: fix "The cache has no package named xxxx"
downloader get the "arch" of a package via apt cache, that requests the
package is available in Debian sources. However, some packages which
have download url may not from Debian sources, that triggers an
exception "The cache has no package named xxxx".
Get the "arch" from filename other than apt cache for the packages
which are downloaded via url.
Test Plan:
Pass: downloader -b
Closes-Bug: 1990596
Signed-off-by: Yue Tao <email address hidden> b12571dab1472be 15281e303ec
Change-Id: Ic30b64c69ae565