alpm: removed unused strtoupper wrapper, remove installeddate on parse_descfile

installdate should never be present in a package descfile, so get rid of it.
With the last commit, we also don't need the util strtoupper function.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2007-09-23 12:20:48 -05:00
parent 443950b7e9
commit d3c8003020
3 changed files with 0 additions and 16 deletions

View file

@ -867,8 +867,6 @@ static int parse_descfile(const char *descfile, pmpkg_t *info)
info->licenses = alpm_list_add(info->licenses, strdup(ptr));
} else if(!strcmp(key, "builddate")) {
strncpy(info->builddate, ptr, sizeof(info->builddate));
} else if(!strcmp(key, "installdate")) {
strncpy(info->installdate, ptr, sizeof(info->installdate));
} else if(!strcmp(key, "packager")) {
strncpy(info->packager, ptr, sizeof(info->packager));
} else if(!strcmp(key, "arch")) {

View file

@ -251,19 +251,6 @@ int _alpm_copyfile(const char *src, const char *dest)
return(0);
}
/* Convert a string to uppercase
*/
char *_alpm_strtoupper(char *str)
{
char *ptr = str;
while(*ptr) {
(*ptr) = toupper(*ptr);
ptr++;
}
return(str);
}
/* Trim whitespace and newlines from a string
*/
char *_alpm_strtrim(char *str)

View file

@ -43,7 +43,6 @@
int _alpm_makepath(const char *path);
int _alpm_copyfile(const char *src, const char *dest);
char *_alpm_strtoupper(char *str);
char *_alpm_strtrim(char *str);
char *_alpm_strreplace(const char *str, const char *needle, const char *replace);
int _alpm_lckmk();