Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
FreeBSD tweak. Change sabayon mirror.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Aug 2, 2009
1 parent 8c0482d commit ab969f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions crawl/distros/freebsd.py
Expand Up @@ -57,6 +57,8 @@ def crawl_repo(repo):
for line in f:
pkg_ver = line.split("|",1)
pkg, ver = pkg_ver[0].rsplit("-",1)
if "," in ver:
ver = ver.rsplit(",",1)[0]
if "_" in ver:
ver, rev = ver.rsplit("_",1)
else:
Expand Down
6 changes: 3 additions & 3 deletions crawl/distros/sabayon.py
Expand Up @@ -9,9 +9,9 @@

distro_id = downstream.distro("sabayon", "", "A binary distribution derived from Gentoo.", "http://www.sabayonlinux.org")

MIRROR = "mirror.cs.vt.edu"
MIRROR = "mirror.internode.on.net"
HTTP_START_DIR = "pub/SabayonLinux"
FTP_START_DIR = None
FTP_START_DIR = "pub/sabayonlinux"

VERSIONS = ["3.5", "4", "5"]
CURRENT = "4"
Expand Down Expand Up @@ -42,7 +42,7 @@ def get_repos(test):
# return a list of [name, version, revision, epoch, time, extra]
def crawl_repo(repo):
fn = "".join(("files/sabayon/packages-",repo.codename,"-",repo.architecture,"-",str(time.time()),".db"))
url = "".join(("http://",MIRROR,"/",HTTP_START_DIR,"/entropy/standard/sabayonlinux.org/database/", repo.architecture, "/", repo.codename, "/packages.db.bz2"))
url = "".join(("ftp://",MIRROR,"/",FTP_START_DIR,"/entropy/standard/sabayonlinux.org/database/", repo.architecture, "/", repo.codename, "/packages.db.bz2"))

#print "open url"
t = helper.open_url(url,fn+".bz2", repo.last_crawl)
Expand Down

0 comments on commit ab969f2

Please sign in to comment.