• R/O
  • SSH
  • HTTPS

svardos: Commit


Commit MetaInfo

Revision627 (tree)
Time2022-02-05 07:13:42
Authormateuszviste

Log Message

fixed pkg update (reported by Robert Riebisch through ticket #43783)

Change Summary

Incremental Difference

--- pkg/trunk/main.c (revision 626)
+++ pkg/trunk/main.c (revision 627)
@@ -116,7 +116,10 @@
116116 /* prepare the zip file and install it */
117117 zipfileidx = pkginstall_preparepackage(pkgname, file, flags, &zipfilefd, dosdir, dirlist);
118118 if (zipfileidx != NULL) {
119- res = pkginstall_installpackage(pkgname, dosdir, dirlist, zipfileidx, zipfilefd);
119+ /* remove the old version of the package if we are UPDATING it */
120+ res = 0;
121+ if (flags & PKGINST_UPDATE) res = pkgrem(pkgname, dosdir);
122+ if (res == 0) res = pkginstall_installpackage(pkgname, dosdir, dirlist, zipfileidx, zipfilefd);
120123 zip_freelist(&zipfileidx);
121124 }
122125
--- pkg/trunk/version.h (revision 626)
+++ pkg/trunk/version.h (revision 627)
@@ -4,7 +4,7 @@
44 #ifndef COMMON_H_SENTINEL
55 #define COMMON_H_SENTINEL
66
7-#define PVER "20220203"
7+#define PVER "20220204"
88 #define PDATE "2012-2022"
99
1010 #endif
Show on old repository browser