Update to new softwareproperties.ppa changes

Closes #17105
This commit is contained in:
Mike Place 2014-11-04 11:24:12 -07:00
parent 4d362274a1
commit ded8a02d5d

View File

@ -1132,8 +1132,7 @@ def get_repo(repo, **kwargs):
ppa_name, dist)
else:
if HAS_SOFTWAREPROPERTIES:
repo = softwareproperties.ppa.expand_ppa_line(
repo,
repo = softwareproperties.ppa.PPAShortcutHandler(repo).expand(
__grains__['lsb_distrib_codename'])[0]
else:
repo = LP_SRC_FORMAT.format(owner_name, ppa_name, dist)
@ -1205,7 +1204,7 @@ def del_repo(repo, **kwargs):
else:
repo = LP_SRC_FORMAT.format(owner_name, ppa_name, dist)
else:
repo = softwareproperties.ppa.expand_ppa_line(repo, dist)[0]
repo = softwareproperties.ppa.PPAShortcutHandler(repo).expand(dist)[0]
sources = sourceslist.SourcesList()
repos = [s for s in sources.list if not s.invalid]
@ -1596,8 +1595,7 @@ def expand_repo_def(repokwargs):
dist)
else:
if HAS_SOFTWAREPROPERTIES:
repo = softwareproperties.ppa.expand_ppa_line(
repo, dist)[0]
repo = softwareproperties.ppa.PPAShortcutHandler(repo).expand(dist)[0]
else:
repo = LP_SRC_FORMAT.format(owner_name, ppa_name, dist)