diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-01-05 14:32:01 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2011-01-05 14:33:16 +0200 |
commit | 0e450c5fb6356f612ef0be98d2ffab854e90dc67 (patch) | |
tree | 56859f6dabf6ee871ffe710981066d5e4369a350 /src/add.c | |
parent | d6a40aae5332e79898bb52efc5a61c81994b0166 (diff) | |
download | aports-0e450c5fb6356f612ef0be98d2ffab854e90dc67.tar.bz2 aports-0e450c5fb6356f612ef0be98d2ffab854e90dc67.tar.xz |
add: use default arch instead of noarch, improve errors
Packages without architecture should get the platforms default
architecture (so we are backwards compatible). Only the virtual
packages should get 'noarch' by default. Also print full path
to the index file which failed.
Diffstat (limited to 'src/add.c')
-rw-r--r-- | src/add.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -80,6 +80,7 @@ static int add_main(void *ctx, struct apk_database *db, int argc, char **argv) apk_checksum_default(), &virtpkg->csum); virtpkg->version = apk_blob_atomize(APK_BLOB_STR("0")); virtpkg->description = strdup("virtual meta package"); + virtpkg->arch = apk_blob_atomize(APK_BLOB_STR("noarch")); apk_dep_from_pkg(&virtdep, db, virtpkg); virtdep.name->flags |= APK_NAME_TOPLEVEL; virtpkg = apk_db_pkg_add(db, virtpkg); |