Do not attempt to modify the database when not having write access to it
modified libpkg/pkgdb.c
@@ -32,6 +32,7 @@ static int sql_exec(sqlite3 *, const char *);
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -241,6 +242,10 @@ pkgdb_upgrade(sqlite3 *sdb)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -625,8 +630,10 @@ void
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
@@ -1703,6 +1710,16 @@ get_pragma(sqlite3 *s, const char *sql, int64_t *res)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|