[pacman-dev] [PATCH] testpkg rework
Hi! Patch attached. Bye ---------------------------------------------------- SZTE Egyetemi Könyvtár - http://www.bibl.u-szeged.hu This mail sent through IMP: http://horde.org/imp/
On Sat, Mar 01, 2008 at 11:18:18AM +0100, Nagy Gabor wrote:
Hi! Patch attached. Bye
* first stat the file (alpm_pkg_load never reports PM_ERR_PKG_NOT_FOUND)
Doesn't it report PM_ERR_PKG_OPEN ? 1029 if (archive_read_open_filename(archive, pkgfile, 1030 ARCHIVE_DEFAULT_BYTES_PER_BLOCK) != ARCHIVE_OK) { 1031 RET_ERR(PM_ERR_PKG_OPEN, NULL); 1032 }
* first stat the file (alpm_pkg_load never reports PM_ERR_PKG_NOT_FOUND)
Doesn't it report PM_ERR_PKG_OPEN ?
1029 if (archive_read_open_filename(archive, pkgfile, 1030 ARCHIVE_DEFAULT_BYTES_PER_BLOCK) != ARCHIVE_OK) { 1031 RET_ERR(PM_ERR_PKG_OPEN, NULL); 1032 }
Hmm. I thought that this cannot be used to indicate "not found" but as I see, we get libarchive error if the archive is not valid... So I attached my reworked patch (pm_errnos from pkg_load are still a bit chaotic). Bye ---------------------------------------------------- SZTE Egyetemi Könyvtár - http://www.bibl.u-szeged.hu This mail sent through IMP: http://horde.org/imp/
participants (2)
-
Nagy Gabor
-
Xavier