vcs-snapshot.eclass: Detect and report invalid directory structure
authorMichał Górny <mgorny@gentoo.org>
Thu, 25 Jul 2019 06:16:42 +0000 (08:16 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 27 Jul 2019 09:49:49 +0000 (11:49 +0200)
commitb5be6cf9e6ac618c9ba413192486dedede9da3e1
treec7a812ce117068f00c56615bb01bcb94c9e679f7
parent5e25faf276f37b610752fd5e3cdae05699bf627a
vcs-snapshot.eclass: Detect and report invalid directory structure

Detect when the archive does not contain a single top-level directory,
and abort in that case.  Otherwise, --strip-components would result
in unpredictable mess.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/vcs-snapshot.eclass