aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md10
-rw-r--r--docs/cpt.texi2
-rw-r--r--src/cpt-lib.in7
3 files changed, 14 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3a4182c..e7ee439 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,16 @@ this project _somewhat_ adheres to [Semantic Versioning].
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
+[7.0.2] - 2023-02-05
+--------------------------------------------------------------------------------
+
+### Fixed
+- Fixed a bug that caused extra dependencies being added to the later packages
+ during multi-package build operations.
+- Fixed file attribute issue with the `_tmp_cp()` function causing modified
+ dependency files to receive `600` permission bits.
+
+
[7.0.1] - 2023-02-05
--------------------------------------------------------------------------------
diff --git a/docs/cpt.texi b/docs/cpt.texi
index 769ecb3..e6b331c 100644
--- a/docs/cpt.texi
+++ b/docs/cpt.texi
@@ -1576,4 +1576,4 @@ MIT
@printindex vr
-@bye
+@bye \ No newline at end of file
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index 8b6cd13..1896920 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -2315,7 +2315,7 @@ _tmp_cp() {
# second argument is not given, use the basename of the copied file.
_ret=${2:-${1##*/}}
_ret=$(_tmp_name "$_ret")
- cp "$1" "$_ret"
+ cp -p "$1" "$_ret"
out "$_ret"
}
@@ -2323,9 +2323,8 @@ _tmp_create() {
# Create given file to the temporary directory and return its name
create_tmp
_ret=$(_tmp_name "$1")
- # False positive, we are not reading from the file.
- # shellcheck disable=2094
- out "$_ret" 3>> "$_ret"
+ :> "$_ret" || return 1
+ out "$_ret"
}
create_tmp() {