From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH] Revert "deb-dl-dir: Use dpkg-deb --field in debsrc_download"
Date: Fri, 7 Apr 2023 07:29:57 +0200 [thread overview]
Message-ID: <20230407052957.25630-1-ubely@ilbers.de> (raw)
This reverts commit b75d6eb9 since Debian bug #1004372 is fixed now.
---
meta/classes/deb-dl-dir.bbclass | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/meta/classes/deb-dl-dir.bbclass b/meta/classes/deb-dl-dir.bbclass
index ca2a1ee2..f0ab9714 100644
--- a/meta/classes/deb-dl-dir.bbclass
+++ b/meta/classes/deb-dl-dir.bbclass
@@ -55,15 +55,8 @@ debsrc_download() {
printenv | grep -q BB_VERBOSE_LOGS && set -x
find "${rootfs}/var/cache/apt/archives/" -maxdepth 1 -type f -iname '*\.deb' | while read package; do
is_not_part_of_current_build "${package}" && continue
- # Get source package name if available, fallback to package name
- local src="$( dpkg-deb --field "${package}" Source | awk '{printf $1}' )"
- [ -z "$src" ] && src="$( dpkg-deb --field "${package}" Package )"
- # Get source package version if available, fallback to package version
- local version="$( dpkg-deb --field "${package}" Source | awk '{gsub(/[()]/,""); printf $2}')"
- [ -z "$version" ] && version="$( dpkg-deb --field "${package}" Version )"
- # TODO: get back to the code below when debian bug #1004372 is fixed
- # local src="$( dpkg-deb --show --showformat '${source:Package}' "${package}" )"
- # local version="$( dpkg-deb --show --showformat '${source:Version}' "${package}" )"
+ local src="$( dpkg-deb --show --showformat '${source:Package}' "${package}" )"
+ local version="$( dpkg-deb --show --showformat '${source:Version}' "${package}" )"
local dscname="$(echo ${src}_${version} | sed -e 's/_[0-9]\+:/_/')"
local dscfile=$(find "${DEBSRCDIR}"/"${rootfs_distro}" -name "${dscname}.dsc")
[ -n "$dscfile" ] && continue
--
2.20.1
next reply other threads:[~2023-04-07 5:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-07 5:29 Uladzimir Bely [this message]
2023-04-12 16:22 ` Uladzimir Bely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230407052957.25630-1-ubely@ilbers.de \
--to=ubely@ilbers.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox