theres only main archive in the ubuntu launchpad
This commit is contained in:
parent
14e7ef85ff
commit
b4c4465ef6
1 changed files with 2 additions and 25 deletions
|
@ -62,37 +62,12 @@ class UbuntuPackageArchive:
|
||||||
return UbuntuDistroLaunchpad().ubuntu
|
return UbuntuDistroLaunchpad().ubuntu
|
||||||
|
|
||||||
def set_main_archive(self):
|
def set_main_archive(self):
|
||||||
"""
|
|
||||||
TODO:
|
|
||||||
Can we make a function that uses the launchpadlib to set the archive to
|
|
||||||
main, multiverse, restricted, universe
|
|
||||||
"""
|
|
||||||
print('Setting package archive to main archive')
|
|
||||||
return self.ubuntu.main_archive
|
return self.ubuntu.main_archive
|
||||||
|
|
||||||
def set_multiverse_archive(self):
|
|
||||||
print('Setting package archive to multiverse archive')
|
|
||||||
return self.ubuntu.multiverse_archive
|
|
||||||
|
|
||||||
def set_restricted_archive(self):
|
|
||||||
print('Setting package archive to restricted archive')
|
|
||||||
return self.ubuntu.restricted_archive
|
|
||||||
|
|
||||||
def set_universe_archive(self):
|
|
||||||
print('Setting package archive to universe archive')
|
|
||||||
return self.ubuntu.universe_archive
|
|
||||||
|
|
||||||
def set_archive(self):
|
def set_archive(self):
|
||||||
if self.archive == 'main':
|
if self.archive == 'main':
|
||||||
return self.set_main_archive()
|
return self.set_main_archive()
|
||||||
elif self.archive == 'multiverse':
|
|
||||||
return self.set_multiverse_archive()
|
|
||||||
elif self.archive == 'restricted':
|
|
||||||
return self.set_restricted_archive()
|
|
||||||
elif self.archive == 'universe':
|
|
||||||
return self.set_universe_archive()
|
|
||||||
else:
|
else:
|
||||||
print('Please set an archive value of main, multiverse, restricted, or universe')
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
class UbuntuPackageHistory:
|
class UbuntuPackageHistory:
|
||||||
|
@ -147,3 +122,5 @@ if __name__ == '__main__':
|
||||||
upa = UbuntuPackageArchive()
|
upa = UbuntuPackageArchive()
|
||||||
udl = UbuntuDistroLaunchpad()
|
udl = UbuntuDistroLaunchpad()
|
||||||
uph = UbuntuPackageHistory()
|
uph = UbuntuPackageHistory()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue