now supports specifying projects via env vars

This commit is contained in:
Jeffrey Paul 2016-09-01 03:38:03 +02:00
parent ba19bd83c1
commit 79a90753c7
2 changed files with 4 additions and 3 deletions

View File

@ -19,6 +19,9 @@ Then even your builds (where you can't specify links) will go fast.
* default `main,universe`. * default `main,universe`.
* You may want `main,universe,restricted,multiverse`. Will use lots of * You may want `main,universe,restricted,multiverse`. Will use lots of
disk. disk.
* `UBUNTU_MIRROR_PROJECTS`
* default `xenial,xenial-updates,xenial-security,xenial-backports`.
* You may want `xenial,xenial-updates,xenial-security,xenial-backports,trusty,trusty-updates,trusty-security,trusty-backports`
* `UBUNTU_MIRROR_SOURCE` * `UBUNTU_MIRROR_SOURCE`
* default `archive.ubuntu.com`. * default `archive.ubuntu.com`.
* You may want `xx.archive.ubuntu.com` (where `xx` is your country * You may want `xx.archive.ubuntu.com` (where `xx` is your country

View File

@ -16,13 +16,11 @@ debmirror \
--no-source \ --no-source \
-s ${MIRROR_CATEGORIES:-main,universe} \ -s ${MIRROR_CATEGORIES:-main,universe} \
-h ${UBUNTU_MIRROR_SOURCE:-archive.ubuntu.com} \ -h ${UBUNTU_MIRROR_SOURCE:-archive.ubuntu.com} \
-d trusty,trusty-updates,trusty-security,trusty-backports \ -d ${UBUNTU_MIRROR_PROJECTS:-xenial,xenial-updates,xenial-security,xenial-backports} \
-d xenial,xenial-updates,xenial-security,xenial-backports \
--ignore-small-errors \ --ignore-small-errors \
-r /ubuntu \ -r /ubuntu \
--progress \ --progress \
--method=http \ --method=http \
$DST/ubuntu $DST/ubuntu
chmod -R a+rX $DST chmod -R a+rX $DST