diff --git a/README.markdown b/README.markdown index db194c1..e7fb489 100644 --- a/README.markdown +++ b/README.markdown @@ -19,6 +19,9 @@ Then even your builds (where you can't specify links) will go fast. * default `main,universe`. * You may want `main,universe,restricted,multiverse`. Will use lots of 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` * default `archive.ubuntu.com`. * You may want `xx.archive.ubuntu.com` (where `xx` is your country diff --git a/mirror/syncubuntu.sh b/mirror/syncubuntu.sh index 21dc294..cc26ffd 100755 --- a/mirror/syncubuntu.sh +++ b/mirror/syncubuntu.sh @@ -16,13 +16,11 @@ debmirror \ --no-source \ -s ${MIRROR_CATEGORIES:-main,universe} \ -h ${UBUNTU_MIRROR_SOURCE:-archive.ubuntu.com} \ - -d trusty,trusty-updates,trusty-security,trusty-backports \ - -d xenial,xenial-updates,xenial-security,xenial-backports \ + -d ${UBUNTU_MIRROR_PROJECTS:-xenial,xenial-updates,xenial-security,xenial-backports} \ --ignore-small-errors \ -r /ubuntu \ --progress \ --method=http \ $DST/ubuntu - chmod -R a+rX $DST