diff options
author | merakor <cem@ckyln.com> | 2022-02-02 09:41:23 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2022-02-02 09:41:23 +0000 |
commit | 4e92df1b2e1c18898a3438ff0b188bdfaba3664a (patch) | |
tree | b0b575b0af6dbb4b714b1f7d3410d69d67d87f2c /src | |
parent | 7dc51aeec441ed5392ce56ff415ebc59f0fe3ea5 (diff) | |
download | cpt-4e92df1b2e1c18898a3438ff0b188bdfaba3664a.tar.gz |
pkg_verify(): fix checksum verification bug where extra sources could
get away with not being verified.
FossilOrigin-Name: 5cfeb17ba29e7948c744db229bca0284eebb3add0098ddda3eb072459cea5f2f
Diffstat (limited to 'src')
-rw-r--r-- | src/cpt-lib.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 57c8e05..7659e39 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -1294,7 +1294,7 @@ pkg_checksums() { pkg_verify() { # Verify all package checksums. This is achieved by generating a new set of # checksums and then comparing those with the old set. - vcmd="NR==FNR{a[\$1];next}/^git .*/{next}!((\$1)in a){exit 1}" + vcmd="NR==FNR{a[\$1];next}/^git .*/{next}!((\$1)in a){exit 1}END{if(NR/2!=FNR)exit 1}" for pkg; do repo_dir=$(pkg_find "$pkg") |