]> pd.if.org Git - zpackage/blobdiff - lib/zpm.c
remove warning if on missing soname
[zpackage] / lib / zpm.c
index 9b208cc59a237dbabc28319cb7f56ac411bef8ec..11ee22cc36f6768d161b3a334d401d61d52be1c6 100644 (file)
--- a/lib/zpm.c
+++ b/lib/zpm.c
@@ -337,6 +337,10 @@ int zpm_extract(struct zpm *pkg, char *hash, char *path, mode_t mode) {
        }
        db = pkg->db;
 
+       if (!path) {
+               path = "-";
+       }
+
        rc = sqlite3_prepare(db, "select size, content from files where hash = ?", -1, &ifile,0);
        if (rc != SQLITE_OK) {
                SQLERROR(sqlite3_errmsg(db));
@@ -498,9 +502,9 @@ static int set_elf_info(struct zpm *zpm, char *hash, char *content,
                        if (zpm->error) {
                                return 0;
                        }
-               } else {
-                       fprintf(stderr, "can't find soname\n");
                }
+               /* some dyn don't have an soname, so we don't
+                * need to warn */
        }
 
        /* if exe, set neededs */