def SetupProxy(self):
    super(DebianMixin, self).SetupProxy()
    apt_proxy_file = "/etc/apt/apt.conf"
    commands = []

    if FLAGS.http_proxy:
      commands.append("echo -e 'Acquire::http::proxy \"%s\";' |"
                      'sudo tee -a %s' % (FLAGS.http_proxy, apt_proxy_file))

    if FLAGS.https_proxy:
      commands.append("echo -e 'Acquire::https::proxy \"%s\";' |"
                      'sudo tee -a %s' % (FLAGS.https_proxy, apt_proxy_file))

    if commands:
      self.RemoteCommand(";".join(commands))
test updating from a trove without a flavor to one with a flavor
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_virtual_machine.py/DebianMixin.SetupProxy--crossover with--dataset/ETHPy150Open sassoftware/conary/conary_test/updatetest.py/UpdateTest.testWithAndWithoutFlavor