summaryrefslogtreecommitdiffstats
path: root/eclass/trinity-meta-2.eclass
diff options
context:
space:
mode:
authorormorph <[email protected]>2021-02-19 09:07:24 +0300
committerSlávek Banko <[email protected]>2021-05-17 20:05:36 +0200
commited21079cdfd606325adcedd55e0e93a952b37cb3 (patch)
tree23b4057dc4ce4cacab10c3be263a970472efde02 /eclass/trinity-meta-2.eclass
parentae9a3933d1ad469ba167589826a052c250b22d29 (diff)
downloadtde-packaging-gentoo-ed21079cdfd606325adcedd55e0e93a952b37cb3.tar.gz
tde-packaging-gentoo-ed21079cdfd606325adcedd55e0e93a952b37cb3.zip
Shortcomings fixes in trinity-meta-2_src_delete function
Signed-off-by: ormorph <[email protected]>
Diffstat (limited to 'eclass/trinity-meta-2.eclass')
-rw-r--r--eclass/trinity-meta-2.eclass8
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..."