Commit 8441a42c authored by John Johansen's avatar John Johansen

Merge branch 'cboltz-drop-activate_repo_profiles' into 'master'

Drop unused activate_repo_profiles()

PR: !274Acked-by: 's avatarJohn Johansen <john.johansen@canonical.com>
parents 67d7cd0a 04c91d52
Pipeline #39410063 passed with stages
in 11 minutes and 53 seconds
......@@ -570,21 +570,6 @@ def get_profile(prof_name):
profile_data = parse_repo_profile(prof_name, repo_url, p)
return profile_data
def activate_repo_profiles(url, profiles, complain):
read_profiles()
try:
for p in profiles:
pname = p[0]
profile_data = parse_repo_profile(pname, url, p[1])
attach_profile_data(aa, profile_data)
write_profile(pname)
if complain:
fname = get_profile_filename_from_profile_name(pname, True)
change_profile_flags(profile_dir + fname, None, 'complain', True)
aaui.UI_Info(_('Setting %s to complain mode.') % pname)
except Exception as e:
sys.stderr.write(_("Error activating profiles: %s") % e)
def autodep(bin_name, pname=''):
bin_full = None
global repo_cfg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment