index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2012-07-12 14:50:56 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-08-01 08:53:10 -0500 |
commit | c5e7eeece75e2774d304116bc5003371cc8f1e8e (patch) | |
tree | f5a1cf5e7c7aae842db275a8e0af7f20ca29d07c | |
parent | 8fe383860e4406d0becf34d2410155e8c93dd494 (diff) |
-rw-r--r-- | lib/libalpm/be_local.c | 2 |
diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c index ee805b9e..a8c8468b 100644 --- a/lib/libalpm/be_local.c +++ b/lib/libalpm/be_local.c @@ -688,6 +688,8 @@ static int local_db_read(alpm_pkg_t *info, alpm_dbinfrq_t inforeq) } /* attempt to hand back any memory we don't need */ files = realloc(files, sizeof(alpm_file_t) * files_count); + /* make sure the list is sorted */ + qsort(files, files_count, sizeof(alpm_file_t), _alpm_files_cmp); info->files.count = files_count; info->files.files = files; } else if(strcmp(line, "%BACKUP%") == 0) { |