mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-09 04:57:59 -05:00
Remove some more diskspace checking holdover stuff
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
caf6c326ec
commit
5e774d72b0
@ -443,7 +443,6 @@ enum _pmerrno_t {
|
||||
PM_ERR_USER_ABORT,
|
||||
PM_ERR_INTERNAL_ERROR,
|
||||
PM_ERR_LIBARCHIVE_ERROR,
|
||||
PM_ERR_DISK_FULL,
|
||||
PM_ERR_DB_SYNC,
|
||||
PM_ERR_RETRIEVE,
|
||||
PM_ERR_PKG_HOLD,
|
||||
|
@ -133,8 +133,6 @@ const char SYMEXPORT *alpm_strerror(int err)
|
||||
return _("internal error");
|
||||
case PM_ERR_LIBARCHIVE_ERROR:
|
||||
return _("libarchive error");
|
||||
case PM_ERR_DISK_FULL:
|
||||
return _("not enough space on disk");
|
||||
case PM_ERR_PKG_HOLD:
|
||||
/* TODO wow this is not descriptive at all... what does this mean? */
|
||||
return _("not confirmed");
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -619,7 +619,6 @@ int pacman_sync(alpm_list_t *targets)
|
||||
|
||||
/* Step 2: "compute" the transaction based on targets and flags */
|
||||
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) {
|
||||
@ -652,12 +651,6 @@ int pacman_sync(alpm_list_t *targets)
|
||||
alpm_dep_get_target(miss), alpm_dep_get_name(miss));
|
||||
}
|
||||
break;
|
||||
case PM_ERR_DISK_FULL:
|
||||
pkgsize = alpm_list_getdata(data);
|
||||
freespace = alpm_list_getdata(alpm_list_next(data));
|
||||
printf(_(":: %.1f MB required, have %.1f MB"),
|
||||
(double)(*pkgsize / 1048576.0), (double)(*freespace / 1048576.0));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user