Merge pull request #393 from xnox/ports-mirror

Fix default mirror for ports.
This commit is contained in:
Dimitri John Ledkov 2018-11-23 00:24:20 +00:00 committed by GitHub
commit 4c4987b9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -14,10 +14,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import logging
import platform
log = logging.getLogger('subiquitycore.models.mirror')
DEFAULT_MIRROR = 'http://archive.ubuntu.com/ubuntu'
# correct default mirror for most arches
DEFAULT_MIRROR = 'http://ports.ubuntu.com/ubuntu-ports'
# apart from the two snowflakes
if platform.machine() in ['i686', 'x86_64']:
DEFAULT_MIRROR = 'http://archive.ubuntu.com/ubuntu'
class MirrorModel(object):