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
|
||||
|
||||
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
|
||||
|
||||
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):
|
||||
if self.archive == 'main':
|
||||
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:
|
||||
print('Please set an archive value of main, multiverse, restricted, or universe')
|
||||
return None
|
||||
|
||||
class UbuntuPackageHistory:
|
||||
|
@ -147,3 +122,5 @@ if __name__ == '__main__':
|
|||
upa = UbuntuPackageArchive()
|
||||
udl = UbuntuDistroLaunchpad()
|
||||
uph = UbuntuPackageHistory()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue