Commit 27a128f7 authored by mara's avatar mara

added the identifier (.new) of the new package

parent 95833680
......@@ -31,6 +31,13 @@ remove_work_dir() {
prepare_work_dir() {
[[ -z "$1" ]] && return 1
[[ ! -d "${_BUILD}/$1/${_WORK_DIR}" ]] && mkdir "${_BUILD}/$1/${_WORK_DIR}"
# if new packages copy all
if [[ -e ${_BUILD}/$1/.new ]]; then
cp -a ${_BUILD}/$1/* ${_BUILD}/$1/${_WORK_DIR}/
return 1
fi
for f in $(ls "${_SOURCE}/$1/");do
if [[ ! -L $f ]];then
cp -a "${_SOURCE}/$1/$f" ${_BUILD}/$1/${_WORK_DIR}/$(basename $f)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment