Skip to content

Commit

Permalink
Adapt to librepo-1.7.13, metalink and mirrorlist are not loaded anymo…
Browse files Browse the repository at this point in the history
…re when the repo is local.

Librepo now loads these files by default and there is no need to specify their paths anymore.
  • Loading branch information
radekholy24 authored and Jan Silhan committed Feb 9, 2015
1 parent 8411914 commit 3a22891
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dnf/repo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# repo.py
# DNF Repository objects.
#
# Copyright (C) 2013-2014 Red Hat, Inc.
# Copyright (C) 2013-2015 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
Expand Down Expand Up @@ -184,10 +184,6 @@ def new_local(cls, subst_dct, gpgcheck, max_mirror_tries, cachedir):
h.destdir = cachedir
h.urls = [cachedir]
h.local = True
if os.access(h.metalink_path, os.R_OK):
h.mirrorlist = h.metalink_path
elif os.access(h.mirrorlist_path, os.R_OK):
h.mirrorlist = h.mirrorlist_path
return h

@property
Expand Down

0 comments on commit 3a22891

Please sign in to comment.