diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-06-20 19:53:02 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2021-06-20 11:54:21 -0700 |
commit | 2ce11f06e48290efb2d4b6743c8edf01c176b0fc (patch) | |
tree | dd883871524785d079b4bb8301a29f1671194f2f /lib | |
parent | OwnerSet: fix inverted exclude_paths condition (diff) | |
download | portage-2ce11f06e48290efb2d4b6743c8edf01c176b0fc.tar.gz portage-2ce11f06e48290efb2d4b6743c8edf01c176b0fc.tar.bz2 portage-2ce11f06e48290efb2d4b6743c8edf01c176b0fc.zip |
fetch: Fix AttributeError when no URL specified
Closes: https://github.com/gentoo/portage/pull/732
Bug: https://bugs.gentoo.org/796812
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portage/package/ebuild/fetch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/portage/package/ebuild/fetch.py b/lib/portage/package/ebuild/fetch.py index c2f7dffc0..100450792 100644 --- a/lib/portage/package/ebuild/fetch.py +++ b/lib/portage/package/ebuild/fetch.py @@ -907,8 +907,8 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, primaryuri_dict = {} thirdpartymirror_uris = {} for myfile, myuri in file_uri_tuples: - override_mirror = myuri.startswith("mirror+") - override_fetch = override_mirror or myuri.startswith("fetch+") + override_mirror = (myuri or "").startswith("mirror+") + override_fetch = override_mirror or (myuri or "").startswith("fetch+") if override_fetch: myuri = myuri.partition("+")[2] |