NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkgin giving "download mismatch"
On Wed, 2 Sep 2015 12:37:40 -0400
"D'Arcy J.M. Cain" <darcy%NetBSD.org@localhost> wrote:
> The actual size of the file is 414007 bytes. The file size shown in
> the summary file is 1528317. This is the output of "pkg_info -Xa" as
> suggested by the guide. So where does it get 70120480? That number
> is not in the package summary at all.
Well, I don't know what changed, pkgin or pkg_info but here's what I
had to do. The guide says that "pkg_info -X -a" gives me the summary
that I need but it doesn't. Here is my script that does.
#! /bin/sh
ALL=/usr/pkgsrc/packages/All
pkg_info -X -a | while read x
do
echo $x
if [ "`echo $x | cut -d= -f1`" = "PKGNAME" ]
then
eval $(stat -s "$ALL/$(echo $x | cut -d= -f2).tgz")
echo "FILESIZE=$st_size"
fi
done | gzip > $ALL/pkg_summary.gz
This takes just over a minute to run. It sure would be nice if
pkg_info were to grow a FILESIZE output line.
--
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
http://www.NetBSD.org/ IM:darcy%Vex.Net@localhost
Home |
Main Index |
Thread Index |
Old Index