[molecules] add tarball template molecule script

This commit is contained in:
Fabio Erculiani
2014-11-08 08:11:03 +01:00
parent ec77c17125
commit 5bfedd6f67
4 changed files with 122 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
# Copy packages list outside tarball
pkglist_file="${CHROOT_DIR}/etc/sabayon-pkglist"
if [ -f "${pkglist_file}" ]; then
tar_dirname=$(dirname "${TAR_PATH}")
if [ -d "${tar_dirname}" ]; then
cp "${pkglist_file}" "${TAR_PATH}.pkglist"
fi
fi