diff options
author | Timo Teras <timo.teras@iki.fi> | 2008-11-06 16:58:58 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2008-11-06 16:58:58 +0200 |
commit | 57154db85d459a869bbfb7a3bd2bcb16699a0a7a (patch) | |
tree | 64394df9d0e0775c334ff6d69c67a4a4322d625b /src/create.c | |
parent | b380d4f8e08aefdf5f685bb3e6731e670d278277 (diff) | |
download | apk-tools-57154db85d459a869bbfb7a3bd2bcb16699a0a7a.tar.gz apk-tools-57154db85d459a869bbfb7a3bd2bcb16699a0a7a.tar.bz2 apk-tools-57154db85d459a869bbfb7a3bd2bcb16699a0a7a.tar.xz apk-tools-57154db85d459a869bbfb7a3bd2bcb16699a0a7a.zip |
db: parse new style .PKGINFO
Diffstat (limited to 'src/create.c')
-rw-r--r-- | src/create.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/create.c b/src/create.c index a033170..c1dbea3 100644 --- a/src/create.c +++ b/src/create.c @@ -15,6 +15,11 @@ static int create_main(int argc, char **argv) { + if (strcmp(apk_root, "/") == 0) { + apk_error("Will not recreate system root."); + return 1; + } + return apk_db_create(apk_root); } |