Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2011 09:18:53 +0200
From:      n dhert <ndhertbsd@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   MOVED file format error
Message-ID:  <BANLkTinNWpb6fhoxYJyi53DHC1jeFtj-dw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
It seems the /usr/ports/MOVED file is corrupt ...
after portsnap fetch; portsnap update
# pkgdb -F
replies:
MOVED file format error

the file is
-rw-r--r--  1 root  wheel  176311 May  9 07:28 /usr/ports/MOVED

On a system where I haven't done a portsnap fetch; portsnap update since
last week
the /usr/ports/MOVED is from May 2  and  # pkgdb -F  doesn't complain.

If I do a portupgrade with the corrupted /usr/ports/MOVED file, I get
/usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:119:in `fill': MOVED file
format er
ror (PortsDB::MOVEDError)
        from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:113:in `each'
        from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:113:in `fill'
        from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:112:in `open'
        from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:112:in `fill'
        from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:107:in
`initialize'
        from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:182:in `new'
        from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:182:in `setup'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:256:in
`init_pkgtools
_global'
        from /usr/local/sbin/portupgrade:523:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize'
        from /usr/local/sbin/portupgrade:231:in `new'
        from /usr/local/sbin/portupgrade:231:in `main'
        from /usr/local/sbin/portupgrade:2219
#

and nothing is updated..

How to get a good /usr/ports/MOVED file ?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinNWpb6fhoxYJyi53DHC1jeFtj-dw>