Ejemplo n.º 1
0
 def on_select(self, item_idx):
     if item_idx is NO_SELECTION:
         status.message('Package install canceled.')
         return
     p = self.list[item_idx][0]
     self.status = status.loading('Installing package: %s' % p)
     commands.install_package(p, self.repo, self.install_success)
Ejemplo n.º 2
0
 def on_select(self, item_idx):
     if item_idx is NO_SELECTION:
         status.message('Package install canceled.')
         return
     p = self.list[item_idx][0]
     self.status = status.loading('Installing package: %s' % p)
     commands.install_package(p, self.repo, self.install_success)
Ejemplo n.º 3
0
 def run(self):
     print('Running update command.')
     self.status = status.loading('Getting installed package list')
     commands.get_installed(self.display_list)
Ejemplo n.º 4
0
 def on_select(self, item_idx):
     if item_idx is NO_SELECTION:
         return
     p = self.list[item_idx]
     self.status = status.loading('Removing package: %s' % p)
     commands.remove_package(p, self.remove_success)
Ejemplo n.º 5
0
 def run(self):
     print('Running install command.')
     self.status = status.loading('Getting package list')
     commands.get_repository(self.display_list)
Ejemplo n.º 6
0
 def run(self):
     print('Running update command.')
     self.status = status.loading('Getting installed package list')
     commands.get_installed(self.display_list)
Ejemplo n.º 7
0
 def on_select(self, item_idx):
     if item_idx is NO_SELECTION:
         return
     p = self.list[item_idx]
     self.status = status.loading('Removing package: %s' % p)
     commands.remove_package(p, self.remove_success)
Ejemplo n.º 8
0
 def run(self):
     print('Running install command.')
     self.status = status.loading('Getting package list')
     commands.get_repository(self.display_list)