diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-02-24 09:20:18 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-02-24 09:22:42 +0200 |
commit | 9ef5bf6e2dc42eb5ba834455f8e5e3e8bc5fed7d (patch) | |
tree | 32cfb0304c24daebc7274dea21ab2a9fbc9fede7 /src/database.c | |
parent | 426954fc7b9d4f99f07389aef15ed61485bd3295 (diff) | |
download | apk-tools-9ef5bf6e2dc42eb5ba834455f8e5e3e8bc5fed7d.tar.gz apk-tools-9ef5bf6e2dc42eb5ba834455f8e5e3e8bc5fed7d.tar.bz2 apk-tools-9ef5bf6e2dc42eb5ba834455f8e5e3e8bc5fed7d.tar.xz apk-tools-9ef5bf6e2dc42eb5ba834455f8e5e3e8bc5fed7d.zip |
pkg, db: use 's' for source repository tags instead of 'p'
Will use 'p' for provides.
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index ca6c524..40f50aa 100644 --- a/src/database.c +++ b/src/database.c @@ -776,6 +776,7 @@ int apk_db_index_read(struct apk_database *db, struct apk_bstream *bs, int repo) ipkg->replaces_priority = apk_blob_pull_uint(&l, 10); break; case 'p': + case 's': ipkg->repository_tag = apk_db_get_tag_id(db, l); break; default: @@ -825,7 +826,7 @@ static int apk_db_write_fdb(struct apk_database *db, struct apk_ostream *os) apk_blob_push_blob(&bbuf, APK_BLOB_STR("\n")); } if (ipkg->repository_tag) { - apk_blob_push_blob(&bbuf, APK_BLOB_STR("p:")); + apk_blob_push_blob(&bbuf, APK_BLOB_STR("s:")); apk_blob_push_blob(&bbuf, *db->repo_tags[ipkg->repository_tag].name); apk_blob_push_blob(&bbuf, APK_BLOB_STR("\n")); } |