Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2012 15:01:45 +0000 (UTC)
From:      jb <jb.1234abcd@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   ports and 'make fetchindex'
Message-ID:  <loom.20121129T155719-456@post.gmane.org>

next in thread | raw e-mail | index | archive | help
Hi,

# portsnap fetch update
...
Building new INDEX files... done.
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26626683 Nov 29 15:17 /usr/ports/INDEX-9

# cd /usr/ports/
[root@localhost /usr/ports]# make fetchindex
/usr/ports/INDEX-9.bz2                        100% of 1615 kB  160 kBps 00m00s
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26665016 Nov 29 15:20 /usr/ports/INDEX-9
 
Notice that 'make fetchindex' fetches INDEX-9.bz2 and deletes it at finish.

# portmaster -L --index | egrep '(ew|ort) version|total install'
/tmp/d-57121-index/INDEX-9.bz2                100% of 1615 kB  164 kBps
...
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26665016 Nov 29 15:25 /usr/ports/INDEX-9
-rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2

Notice that 'portmaster ...' did NOT delete INDEX-9.bz2 at finish.

[root@localhost /usr/ports]# make fetchindex
[root@localhost /usr/ports]#
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26665016 Nov 29 15:29 /usr/ports/INDEX-9
#

Notice that 'make fetchindex' did NOT fetch a fresh copy of INDEX-9.bz2.
Is this a potential problem ?
I understand that "Make fetchindex will just fetch the index from a repository
server."
Could it be that 'make fetchindex' could miss the latest INDEX-9.bz2 on server
in case of a long time passed since the old INDEX-9.bz2 was downloaded ?

jb





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?loom.20121129T155719-456>