commit 113e719
hovercats
·
2026-09-10 20:42:03 +0000 UTC
parent ff15764
exit with an error if we try to uninstall a package thats not installed
1 files changed,
+3,
-0
M
rcpm
M
rcpm
+3,
-0
1@@ -162,6 +162,9 @@ fn get_local_ver {
2 }
3
4 fn rm_pkg {
5+ if (! test -d $rcpm_root/$rcpm_db/$pkg) {
6+ errexit Error: Package not installed!
7+ }
8 filelist=`{cat $rcpm_root/$rcpm_db/$pkg/manifest}
9 for (files in $filelist) {
10 rmdir $rcpm_root/$files >[2=] || rm -f $rcpm_root/$files >[2=]