[pacman-dev] [PATCH] testpkg rework

Nagy Gabor ngaba at bibl.u-szeged.hu
Sat Mar 1 08:14:28 EST 2008


> > * 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-testpkg-rework.patch
Type: application/octet-stream
Size: 2341 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20080301/e01d1c0b/attachment.obj>


More information about the pacman-dev mailing list