zpm_clearmem(zpm);
+ if (!path) {
+ path = getenv("ZPMDB");
+ }
+
+ if (!path) {
+ path = "/var/lib/zpm/local.db";
+ }
+
rc = sqlite3_open_v2(path, &db, SQLITE_OPEN_READWRITE, NULL);
if (rc) {
SQLERROR(sqlite3_errmsg(db));
if (!havedata) {
/* compress */
+// fprintf(stderr, "compressing\n");
outbuf = compresslzma(content, sbuf.st_size, &outlen);
if (!outbuf) {
fprintf(stderr, "compresslzma failed\n");
munmap(content, sbuf.st_size);
return 0;
}
+//// fprintf(stderr, "compress finished\n");
/* insert */
if (haverow) {