cpt

Carbs Packaging Tools
git clone git://git.carbslinux.org/cpt
Log | Files | Refs | README | LICENSE

commit 4d17af0178b70936f5d71cb368cbbda6f52e3247
parent b71f700e8ca52fcea42c8f8857be7e8904871af5
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 11 Aug 2020 20:44:47 +0300

pkg_build(): remove the diff file if it is empty

Diffstat:
Msrc/cpt-lib | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cpt-lib b/src/cpt-lib @@ -752,8 +752,8 @@ pkg_build() { cp -LRf "$repo_dir" "$pkg_dir/$pkg/$pkg_db/" # Copy the modified build file to the package directory. - diff "$pkg_dir/$pkg/$pkg_db/build" .build.cpt > "$pkg_dir/$pkg/$pkg_db/build.diff" - [ -s "$pkg_dir/$pkg/$pkg_db/build.diff" ] || rm -f "$pkg_dir/$pkg/$pkg_db/build.diff" + diff "$pkg_dir/$pkg/$pkg_db/build" .build.cpt > "$pkg_dir/$pkg/$pkg_db/build.diff" && + rm -f "$pkg_dir/$pkg/$pkg_db/build.diff" # We never ever want this. Let's end the endless conflicts # and remove it.