Changeset 253 for trunk/moap/util/deps.py
- Timestamp:
- 25-05-07 15:57:15 (6 years ago)
- File:
-
- 1 edited
-
trunk/moap/util/deps.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/moap/util/deps.py
r252 r253 31 31 return m(distro) 32 32 33 def fedora_yum(self, packageName):33 def FedoraCore_yum(self, packageName): 34 34 """ 35 35 Returns a string explaining how to install the given package. … … 37 37 return "On Fedora, you can install %s with:\n" \ 38 38 "su -c \"yum install %s\"" % (self.module, packageName) 39 40 def Ubuntu_apt(self, packageName): 41 """ 42 Returns a string explaining how to install the given package. 43 """ 44 return "On Ubuntu, you can install %s with:\n" \ 45 "sudo apt-get install %s" % (self.module, packageName) 39 46 40 47 class RDF(Dependency): … … 46 53 return "python-redland is not yet available in Fedora Extras.\n" 47 54 55 def Ubuntu_install(self, distro): 56 return self.Ubuntu_apt('python-librdf') 57 48 58 class Cheetah(Dependency): 49 59 module = 'Cheetah' … … 53 63 def FedoraCore_install(self, distro): 54 64 if distro.atLeast('4'): 55 return self. fedora_yum('python-cheetah')65 return self.FedoraCore_yum('python-cheetah') 56 66 57 67 return "python-cheetah is only available in Fedora 4 or newer.\n" … … 64 74 def FedoraCore_install(self, distro): 65 75 return "genshi is not yet available in Fedora Extras.\n" 76 77 def Ubuntu_install(self, distro): 78 return self.Ubuntu_apt('python-genshi') 66 79 67 80 class pygoogle(Dependency): … … 88 101 89 102 def FedoraCore_install(self, distro): 90 return self. fedora_yum('ctags')103 return self.FedoraCore_yum('ctags') 91 104 92 105 def handleImportError(exception):
Note: See TracChangeset
for help on using the changeset viewer.
