diff options
author | ormorph <roma251078@mail.ru> | 2021-02-19 09:07:24 +0300 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-05-17 20:05:36 +0200 |
commit | ed21079cdfd606325adcedd55e0e93a952b37cb3 (patch) | |
tree | 23b4057dc4ce4cacab10c3be263a970472efde02 /eclass | |
parent | ae9a3933d1ad469ba167589826a052c250b22d29 (diff) | |
download | tde-packaging-gentoo-ed21079cdfd606325adcedd55e0e93a952b37cb3.tar.gz tde-packaging-gentoo-ed21079cdfd606325adcedd55e0e93a952b37cb3.zip |
Shortcomings fixes in trinity-meta-2_src_delete function
Signed-off-by: ormorph <roma251078@mail.ru>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/trinity-meta-2.eclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/trinity-meta-2.eclass b/eclass/trinity-meta-2.eclass index 13997a20..35bf50c3 100644 --- a/eclass/trinity-meta-2.eclass +++ b/eclass/trinity-meta-2.eclass @@ -274,10 +274,14 @@ trinity-meta-2_src_delete() { done mkdir -p ${dir}/${newdir} || die - cp -af ${x} ${dir}/${newdir} || die + if [[ -f "${x}" ]] || [[ -d "${x}" ]] ; then + cp -af ${x} ${dir}/${newdir}/ || die + fi unset newdir else - cp -af ${x} ${dir}/ || die + if [[ -f "${x}" ]] || [[ -d "${x}" ]] ; then + cp -af ${x} ${dir}/ || die + fi fi done einfo "Delete directories..." |