summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/be_files.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-07-12 05:36:13 +0200
committerDan McGee <dan@archlinux.org>2007-07-12 05:36:13 +0200
commit653fb8fe036363dfb550785c45adcf26f6fcbfbc (patch)
tree35dd58c28d317dc6346e1f7d5f1f219889b8604b /lib/libalpm/be_files.c
parent147a32b32de4ebcbb51c963f2573d9218d9a2eb9 (diff)
downloadpacman-653fb8fe036363dfb550785c45adcf26f6fcbfbc.tar.gz
pacman-653fb8fe036363dfb550785c45adcf26f6fcbfbc.tar.xz
Remove 'buildtype' from libalpm and pacman
Remove unused buildtype field from pmpkg_t struct and anything associated with it, as it is unused at the moment. If we need to readd it, it is an easy revert of this commit. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_files.c')
-rw-r--r--lib/libalpm/be_files.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c
index f0c0d5ef..7db9b260 100644
--- a/lib/libalpm/be_files.c
+++ b/lib/libalpm/be_files.c
@@ -356,11 +356,6 @@ int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq)
goto error;
}
_alpm_strtrim(info->builddate);
- } else if(!strcmp(line, "%BUILDTYPE%")) {
- if(fgets(info->buildtype, sizeof(info->buildtype), fp) == NULL) {
- goto error;
- }
- _alpm_strtrim(info->buildtype);
} else if(!strcmp(line, "%INSTALLDATE%")) {
if(fgets(info->installdate, sizeof(info->installdate), fp) == NULL) {
goto error;
@@ -589,10 +584,6 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq)
fprintf(fp, "%%BUILDDATE%%\n"
"%s\n\n", info->builddate);
}
- if(info->buildtype[0]) {
- fprintf(fp, "%%BUILDTYPE%%\n"
- "%s\n\n", info->buildtype);
- }
if(info->installdate[0]) {
fprintf(fp, "%%INSTALLDATE%%\n"
"%s\n\n", info->installdate);