From 5e774d72b0ac7777aada8271e2162d764d4f0db4 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 13 Jun 2007 00:31:01 -0400 Subject: Remove some more diskspace checking holdover stuff Signed-off-by: Dan McGee --- src/pacman/add.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/pacman/add.c') diff --git a/src/pacman/add.c b/src/pacman/add.c index d5d83d28..39da624b 100644 --- a/src/pacman/add.c +++ b/src/pacman/add.c @@ -117,8 +117,6 @@ int pacman_add(alpm_list_t *targets) /* Step 2: "compute" the transaction based on targets and flags */ /* TODO: No, compute nothing. This is stupid. */ if(alpm_trans_prepare(&data) == -1) { - long long *pkgsize, *freespace; - fprintf(stderr, _("error: failed to prepare transaction (%s)\n"), alpm_strerror(pm_errno)); switch(pm_errno) { @@ -173,18 +171,6 @@ int pacman_add(alpm_list_t *targets) } printf(_("\nerrors occurred, no packages were upgraded.\n")); break; - /* TODO This is gross... we should not return these values in the same - * list we would get conflicts and such with... it's just silly - */ - case PM_ERR_DISK_FULL: - i = data; - pkgsize = alpm_list_getdata(i); - i = alpm_list_next(i); - freespace = alpm_list_getdata(i); - printf(_(":: %.1f MB required, have %.1f MB"), - (double)(*pkgsize / (1024.0*1024.0)), - (double)(*freespace / (1024.0*1024.0))); - break; default: break; } -- cgit v1.2.3-70-g09d2