diff options
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r-- | lib/libalpm/package.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 4baa1588..ffaa96b3 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -152,19 +152,6 @@ const char SYMEXPORT *alpm_pkg_get_filename(pmpkg_t *pkg) _alpm_db_read(pkg->origin_data.db, pkg, INFRQ_DESC); } - if(pkg->filename == NULL || strlen(pkg->filename) == 0) { - /* construct the file name, it's not in the desc file */ - char buffer[PATH_MAX]; - if(pkg->arch && strlen(pkg->arch) > 0) { - snprintf(buffer, PATH_MAX, "%s-%s-%s" PKGEXT, - pkg->name, pkg->version, pkg->arch); - } else { - snprintf(buffer, PATH_MAX, "%s-%s" PKGEXT, - pkg->name, pkg->version); - } - STRDUP(pkg->filename, buffer, RET_ERR(PM_ERR_MEMORY, NULL)); - } - return pkg->filename; } |