Real fix for autododoc, add NEWS, remove MANIFEST*

This commit is contained in:
Fatih Aşıcı
2009-01-28 09:11:40 +00:00
parent 566b667b7b
commit 26697ac371
2 changed files with 11 additions and 5 deletions
+3
View File
@@ -1,3 +1,6 @@
2009-01-28 Fatih Aşıcı <fatih@pardus.org.tr>
* Fix auto-dodoc in pythonmodules to include ChangeLog, README, etc.
2009-01-26 Faik Uygur <faik@pardus.org.tr>
* When pisi fails to download the package raise an error and exit. This is needed when
pisi is behind a proxy with some virus control mechanism that sends a html status page
+8 -5
View File
@@ -11,6 +11,7 @@
# standard python modules
import os
import glob
import gettext
__trans = gettext.translation('pisi', fallback=True)
@@ -53,12 +54,14 @@ def install(parameters = ''):
if system('python setup.py install --root=%s --no-compile -O0 %s' % (get.installDIR(), parameters)):
raise InstallError, _('Install failed.')
DDOCS = 'CHANGELOG COPYRIGHT KNOWN_BUGS MAINTAINERS PKG-INFO AUTHORS \
CONTRIBUTORS LICENSE COPYING* Change* MANIFEST* README*'
docFiles = ('AUTHORS', 'CHANGELOG', 'CONTRIBUTORS', 'COPYING*', 'COPYRIGHT',
'Change*', 'KNOWN_BUGS', 'LICENSE', 'MAINTAINERS', 'NEWS',
'README*', 'PKG-INFO')
for doc in DDOCS.split():
if can_access_file(doc) and not isEmpty(doc):
dodoc(doc)
for docGlob in docFiles:
for doc in glob.glob(docGlob):
if can_access_file(doc) and not isEmpty(doc):
dodoc(doc)
def run(parameters = ''):
'''executes parameters with python'''