diff options
-rw-r--r-- | src/cpt-lib | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpt-lib b/src/cpt-lib index 092a515..1d77016 100644 --- 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 {} + |