Real fix for autododoc, add NEWS, remove MANIFEST*
This commit is contained in:
@@ -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>
|
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
|
* 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
|
pisi is behind a proxy with some virus control mechanism that sends a html status page
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
# standard python modules
|
# standard python modules
|
||||||
import os
|
import os
|
||||||
|
import glob
|
||||||
|
|
||||||
import gettext
|
import gettext
|
||||||
__trans = gettext.translation('pisi', fallback=True)
|
__trans = gettext.translation('pisi', fallback=True)
|
||||||
@@ -53,10 +54,12 @@ def install(parameters = ''):
|
|||||||
if system('python setup.py install --root=%s --no-compile -O0 %s' % (get.installDIR(), parameters)):
|
if system('python setup.py install --root=%s --no-compile -O0 %s' % (get.installDIR(), parameters)):
|
||||||
raise InstallError, _('Install failed.')
|
raise InstallError, _('Install failed.')
|
||||||
|
|
||||||
DDOCS = 'CHANGELOG COPYRIGHT KNOWN_BUGS MAINTAINERS PKG-INFO AUTHORS \
|
docFiles = ('AUTHORS', 'CHANGELOG', 'CONTRIBUTORS', 'COPYING*', 'COPYRIGHT',
|
||||||
CONTRIBUTORS LICENSE COPYING* Change* MANIFEST* README*'
|
'Change*', 'KNOWN_BUGS', 'LICENSE', 'MAINTAINERS', 'NEWS',
|
||||||
|
'README*', 'PKG-INFO')
|
||||||
|
|
||||||
for doc in DDOCS.split():
|
for docGlob in docFiles:
|
||||||
|
for doc in glob.glob(docGlob):
|
||||||
if can_access_file(doc) and not isEmpty(doc):
|
if can_access_file(doc) and not isEmpty(doc):
|
||||||
dodoc(doc)
|
dodoc(doc)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user