diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-10-29 02:55:19 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-29 20:40:24 -0700 |
commit | ee53baefad8a0f9d1bdf3014d17730fc2d60002e (patch) | |
tree | 00240de64eeabd916be3c99c04837fa793957ce6 /bin/misc-functions.sh | |
parent | d3c6bd51c36b9f0bdda699ae4e073ef57c51d02c (diff) | |
download | portage-ee53baefad8a0f9d1bdf3014d17730fc2d60002e.tar.gz portage-ee53baefad8a0f9d1bdf3014d17730fc2d60002e.tar.bz2 portage-ee53baefad8a0f9d1bdf3014d17730fc2d60002e.zip |
dyn_spec: account for empty $FILESDIR
This should fix bug 342721.
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-x | bin/misc-functions.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index b266764f9..79ce43628 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -907,8 +907,10 @@ dyn_package() { dyn_spec() { local sources_dir=/usr/src/rpm/SOURCES mkdir -p "${sources_dir}" + declare -a tar_args=("${EBUILD}") + [[ -d ${FILESDIR} ]] && tar_args=("${EBUILD}" "${FILESDIR}") tar czf "${sources_dir}/${PF}.tar.gz" \ - "${EBUILD}" "${FILESDIR}" || \ + "${tar_args[@]}" || \ die "Failed to create base rpm tarball." cat <<__END1__ > ${PF}.spec |