Signed-off-by: Mike Gilbert <floppym@gentoo.org>
---
eclass/verify-sig.eclass | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass
index b74ed78290aa..4d48c9ed8503 100644
--- a/eclass/verify-sig.eclass
+++ b/eclass/verify-sig.eclass
@@ -426,10 +426,14 @@ verify-sig_src_unpack() {
verify-sig_verify_detached \
"${DISTDIR}/${f%.*}" "${DISTDIR}/${f}"
done
- fi
- # finally, unpack the distfiles
- default_src_unpack
+ # finally, unpack the distfiles
+ if [[ ${#distfiles[@]} -gt 0 ]]; then
+ unpack "${distfiles[@]}"
+ fi
+ else
+ default_src_unpack
+ fi
}
fi
On Wed, 22 May 2024, Mike Gilbert wrote:
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
---
eclass/verify-sig.eclass | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass
index b74ed78290aa..4d48c9ed8503 100644
--- a/eclass/verify-sig.eclass
+++ b/eclass/verify-sig.eclass
@@ -426,10 +426,14 @@ verify-sig_src_unpack() {
verify-sig_verify_detached \
"${DISTDIR}/${f%.*}" "${DISTDIR}/${f}"
done
- fi
- # finally, unpack the distfiles
- default_src_unpack
+ # finally, unpack the distfiles
+ if [[ ${#distfiles[@]} -gt 0 ]]; then
+ unpack "${distfiles[@]}"
+ fi
+ else
+ default_src_unpack
+ fi
}
fi
Please provide an explanation what problem this patch fixes.
Why is calling unpack on sig files bad? It should silently skip files
with unknown extensions.
unpack freerdp-2.11.7.tar.gz.asc: file format not recognized. Ignoring.Unpacking freerdp-2.11.7.tar.gz.asc to /x/portage/net-misc/freerdp-2.11.7/work
On Tue, 2024-05-21 at 22:05 -0400, Mike Gilbert wrote:
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
---
eclass/verify-sig.eclass | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass
index b74ed78290aa..4d48c9ed8503 100644
--- a/eclass/verify-sig.eclass
+++ b/eclass/verify-sig.eclass
@@ -426,10 +426,14 @@ verify-sig_src_unpack() {
verify-sig_verify_detached \
"${DISTDIR}/${f%.*}" "${DISTDIR}/${f}"
done
- fi
- # finally, unpack the distfiles
- default_src_unpack
+ # finally, unpack the distfiles
+ if [[ ${#distfiles[@]} -gt 0 ]]; then
+ unpack "${distfiles[@]}"
+ fi
+ else
+ default_src_unpack
+ fi
}
fi
Please make a pull request or send a patch with more context.
As submitted, this patch is completely unreadable.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 399 |
Nodes: | 16 (2 / 14) |
Uptime: | 101:42:04 |
Calls: | 8,363 |
Calls today: | 2 |
Files: | 13,165 |
Messages: | 5,898,006 |