libxbps::xbps_remove_obsoletes(): reset a var to 0 in non fatal errors!

This commit is contained in:
Juan RP 2010-05-18 15:33:27 +02:00
parent 0074312dec
commit c4e9d86630
3 changed files with 7 additions and 1 deletions

5
NEWS
View File

@ -1,3 +1,8 @@
xbps-0.5.2.2 (2010-05-18):
* libxbps: do not forget to reset a variable to 0 when removing obsolete files
that are unexistent or its hash didn't match.
xbps-0.5.2.1 (2010-05-18):
* Due to human error, last fix in 0.5.2 was completely wrong and the

View File

@ -59,7 +59,7 @@ __BEGIN_DECLS
* @def XBPS_RELVER
* Current library release date.
*/
#define XBPS_RELVER "20100518:0.5.2.1"
#define XBPS_RELVER "20100518:0.5.2.2"
/**
* @def XBPS_META_PATH

View File

@ -84,6 +84,7 @@ again:
* match the hash.
*/
free(file);
rv = 0;
continue;
}
} else {