
Ignore-this: d44e3a409d0035a65c08d4ed5c5d789a darcs-hash:20120526172634-b6762-6b5e5064ceba05a3a64e9ea18e242de091d04a12.gz
53 lines
1.7 KiB
Python
53 lines
1.7 KiB
Python
# -*- mode: python; coding: utf-8 -*-
|
|
|
|
include("mode/space")
|
|
header()
|
|
|
|
distro = metadata.categories["debian-version"]
|
|
|
|
# Dépôt
|
|
##if has("debian-mirror"):
|
|
## repo = "file:/mirror"
|
|
##else:
|
|
## repo = "ftp://mirror.adm.crans.org"
|
|
repo = "ftp://mirror.adm.crans.org"
|
|
|
|
def source(args):
|
|
print "deb " + args
|
|
print "deb-src " + args
|
|
|
|
if has("ovh"):
|
|
source("ftp://mir1.ovh.net/debian/ %s main contrib" % distro)
|
|
source("ftp://security.debian.org/debian-security %s/updates main" % distro)
|
|
|
|
@# Paquets construits à la main
|
|
##source("%s/custom %s main contrib non-free" % (repo, distro))
|
|
|
|
else:
|
|
# Pour les mises a jour de sécurité on utilise pas de mirroir...
|
|
if has("adm-only"):
|
|
# ... sauf si le serveur ne voit pas le reste du monde ...
|
|
source("%s/debian-security %s/updates main" % (repo, distro))
|
|
pass
|
|
else:
|
|
source("ftp://security.debian.org/debian-security %s/updates main" % distro)
|
|
|
|
if has("non-free"):
|
|
source("%s/debian %s main contrib non-free" % (repo, distro))
|
|
else:
|
|
source("%s/debian %s main contrib" % (repo, distro))
|
|
|
|
# Pour quand ça sera fait:
|
|
if not has("squeeze"): # and has("need-volatile"):
|
|
source("%s/debian-volatile %s/volatile main contrib" % (repo, distro))
|
|
|
|
if has("multimedia"):
|
|
@# Mplayer, generation des vignettes
|
|
source("%s/debian-multimedia %s main" % (repo, distro))
|
|
|
|
@# Paquets construits à la main
|
|
##source("%s/custom %s main contrib non-free" % (repo, distro))
|
|
|
|
if has("rouge") or has("owl"):
|
|
@# Backports pour dovecot et roundcube
|
|
source("%s/debian-backports %s-backports main contrib" % (repo, distro))
|