commit e91ff0f
hovercats
·
2026-09-09 17:28:41 +0000 UTC
parent 6218020
verify manifest on install
1 files changed,
+11,
-2
M
rcpm
M
rcpm
+11,
-2
1@@ -111,8 +111,17 @@ fn install_pkg {
2 cd $rcpm_root
3 get_ver || status=()
4 if (! check_prebuilt) {
5+ mkdir -p /tmp/$pid/$pkg/out
6+ cd /tmp/$pid/$pkg/out
7 $tool -dc $rcpm_cache/$pkg@$ver-$rev.tar.$ext | pax -r
8- log $pkg installed successfully
9+ mv -f ./$rcpm_db/$pkg/manifest ..
10+ gen_manifest
11+ if (cmp -s ../manifest ./$rcpm_db/$pkg/manifest) {
12+ cd $rcpm_root
13+ $tool -dc $rcpm_cache/$pkg@$ver-$rev.tar.$ext | pax -r
14+ log $pkg installed successfully
15+ }
16+ if not errexit Error: Manifest does not match!
17 }
18 }
19
20@@ -123,7 +132,7 @@ fn build_pkg {
21 mkdir -p src/ && cp -Rf files/* src/
22 }
23 cd src
24- destdir=/tmp/$pid/$pkg
25+ destdir=/tmp/$pid/$pkg/inn
26 test -d $destdir && rm -rf $destdir
27 ../build
28 cd $destdir