Exemple #1
0
 def add_system_provides(self, names):
     provider = SystemProvider(self.config)
     provider.load()
     for name in names:
         provider.add(name[0], name[1])
     provider.save()
     if not self.quiet:
         print "Added software '%s' provided by the system successfully" % \
                ", ".join([name[0] for name in names])
Exemple #2
0
 def remove_system_provides(self, names):
     provider = SystemProvider(self.config)
     provider.load()
     for name in names:
         success = provider.remove(name)
         provider.save()
         if not self.quiet:
             if success:
                 print "removed '%s' sucessfully" % name
             else:
                 print "'%s' couldn't be removed" % name