Only check diskspace availability if needs more than zero
commitc78a808c49f1df12254ff9ae5ce32bd450e14df8
authorAllan McRae <allan@archlinux.org>
Sat, 18 Dec 2010 12:47:16 +0000 (18 22:47 +1000)
committerDan McGee <dan@archlinux.org>
Tue, 21 Dec 2010 00:03:34 +0000 (20 18:03 -0600)
tree64bf8a315c2d90919b066fd96ec3ba8ebe8b3930
parenta611879318a4c39488f977308af8ee90f428995b
Only check diskspace availability if needs more than zero

The amount of diskspace needed for a transaction can be less than
zero.  Only test this against the available disk space if it is
positive, which avoids a comparison being made between signed and
unsigned types (-Wsign-compare).

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/diskspace.c