index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Xavier Chantry <shiningxc@gmail.com> | 2008-05-22 23:59:10 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-05-29 06:37:20 -0500 |
commit | b262ddb2edb8a4622a9cd3c50f245a6fa7f35f75 (patch) | |
tree | b451f7b0542ab3fcbd6f736d1c2216eb734ccf5c /lib/libalpm/be_files.c | |
parent | f30dab4b5a382bc4886af6b64f721fd2b4884283 (diff) |
-rw-r--r-- | lib/libalpm/be_files.c | 21 |
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index 7b3d824d..2302374d 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -672,6 +672,16 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) } fprintf(fp, "\n"); } + if(info->replaces) { + fputs("%REPLACES%\n", fp); + for(lp = info->replaces; lp; lp = lp->next) { + fprintf(fp, "%s\n", (char *)lp->data); + } + fprintf(fp, "\n"); + } + if(info->force) { + fprintf(fp, "%%FORCE%%\n\n"); + } if(local) { if(info->url) { fprintf(fp, "%%URL%%\n" @@ -795,17 +805,6 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) } fprintf(fp, "\n"); } - if(info->replaces) { - fputs("%REPLACES%\n", fp); - for(lp = info->replaces; lp; lp = lp->next) { - fprintf(fp, "%s\n", (char *)lp->data); - } - fprintf(fp, "\n"); - } - if(info->force) { - /* note the extra newline character, which is necessary! */ - fprintf(fp, "%%FORCE%%\n\n"); - } fclose(fp); fp = NULL; } |