[PATCH cygport] Use compressed empty archives for empty packages
Jon Turney
jon.turney@dronecode.org.uk
Sun Jun 26 12:27:00 GMT 2016
Using a compressed empty file instead of a compressed archive means these
files need to be treated specially throughout the entire package pipeline.
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
---
lib/pkg_pkg.cygpart | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/pkg_pkg.cygpart b/lib/pkg_pkg.cygpart
index 294260d..8cb2492 100644
--- a/lib/pkg_pkg.cygpart
+++ b/lib/pkg_pkg.cygpart
@@ -175,7 +175,7 @@ __pkg_binpkg() {
else
inform "Creating empty package"
mkdir -p ${distdir}/${PN}/${distsubdir};
- xz < /dev/null > ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.tar.xz \
+ tar -Jcf ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.tar.xz --files-from /dev/null \
|| error "Empty package creation failed"
> ${T}/.${pkg_name[${n}]}.lst
fi
@@ -723,7 +723,7 @@ _EOF
for obspkg in ${!pkg_obsoletes_var}
do
mkdir -p ${distdir}/${PN}/${obspkg};
- xz < /dev/null > ${distdir}/${PN}/${obspkg}/${obspkg}-${PVR}.tar.xz
+ tar -Jcf ${distdir}/${PN}/${obspkg}/${obspkg}-${PVR}.tar.xz --files-from /dev/null
__step "${pkg_name[${n}]} OBSOLETES: ${obspkg}"
--
2.8.3
More information about the Cygwin-apps
mailing list