1
2
3
4
5
6
7
8
9
10
11
12
13 | def pin_bigtop_packages(self):
"""
Tell Ubuntu to use the Bigtop repo where possible, so that we
don't actually fetch newer packages from universe.
"""
origin = self.options.get('bigtop_repo-{}'.format(utils.cpu_arch()))
origin = origin.split("//")[1].split("/")[0]
with open("resources/pin-bigtop.txt", 'r') as pin_file:
pin_file = pin_file.read().format(origin=origin)
with open("/etc/apt/preferences.d/bigtop-999", "w") as out_file:
out_file.write(pin_file)
|