cpt

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

commit 475774d2f1355026a2ef70a30ab4326b630ce4d7
parent ff983f62ad4c39be83d0df8556475305d5a64193
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 11 Aug 2020 19:59:17 +0300

pkg_build(): add the modified build to the package database.

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

diff --git a/src/cpt-lib b/src/cpt-lib @@ -751,6 +751,10 @@ pkg_build() { # This acts as the database entry. cp -LRf "$repo_dir" "$pkg_dir/$pkg/$pkg_db/" + # Copy the modified build file to the package directory. + diff "$pkg_dir/build" .build.cpt > "$pkg_dir/$pkg/$pkg_db/build" > "$pkg_dir/$pkg/$pkg_db/build.diff" + [ -s "$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. find "$pkg_dir/$pkg" -name charset.alias -exec rm -f {} +