Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Michael Weber <xmw@g.o>
Subject: Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
Date: Tue, 12 Jun 2012 15:26:58 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

- From the eclass:

	# XXX: check whether the directory structure inside is
	# fine? i.e. if the tarball has actually a parent dir.

This should work with gnu and bsd tar, and sed+sort+wc from
sys-apps/coreutils as well as busybox.

[ $(bsdtar -t -f ~/keithw-mosh-mosh-1.2.1-0-g778b5af.zip \
	| sed 's:/.*::' | sort -u | wc -l) == 1 ]

I'm totally sure if we have to handle leading slashes and ./ in
obscure tars/zips but I'd say this tests qualifies for an
|| ewarn "Please check $f for an single parent directory"
or something like that.

My 2 cents

- --
Gentoo Dev
http://xmw.de/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iF4EAREIAAYFAk/XQ6IACgkQknrdDGLu8JCXrQD/esMpA3z4jiZIsI3qkiz3zM7X
0I2ck7tG6WHGqTP/HEQA/jCAxkDt2hUXM+govuZaKrNHj5pBNvJIQNUF7VnzYKYr
=Lf4O
-----END PGP SIGNATURE-----


Replies:
Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
-- Michał Górny
References:
RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
-- Michał Górny
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
Next by thread:
Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
Previous by date:
Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
Next by date:
Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.