SOURCES: python-django-pyc.patch - we need .py files too, from applications...

emes emes at pld-linux.org
Tue Sep 9 16:14:27 CEST 2008


Author: emes                         Date: Tue Sep  9 14:14:27 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- we need .py files too, from applications which are not compiled to .pyc

---- Files affected:
SOURCES:
   python-django-pyc.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/python-django-pyc.patch
diff -u SOURCES/python-django-pyc.patch:1.2 SOURCES/python-django-pyc.patch:1.3
--- SOURCES/python-django-pyc.patch:1.2	Sat Sep  6 21:00:56 2008
+++ SOURCES/python-django-pyc.patch	Tue Sep  9 16:14:22 2008
@@ -1,13 +1,13 @@
---- Django-1.0/django/core/management/__init__.py~	2008-09-04 16:59:20.000000000 +0200
-+++ Django-1.0/django/core/management/__init__.py	2008-09-04 17:03:06.523177611 +0200
+--- Django-1.0/django/core/management/__init__.py~	2008-09-09 16:04:14.713687966 +0200
++++ Django-1.0/django/core/management/__init__.py	2008-09-09 16:04:18.667023812 +0200
 @@ -22,8 +22,8 @@
      """
      command_dir = os.path.join(management_dir, 'commands')
      try:
 -        return [f[:-3] for f in os.listdir(command_dir)
 -                if not f.startswith('_') and f.endswith('.py')]
-+        return [f[:-4] for f in os.listdir(command_dir)
-+                if not f.startswith('_') and (f.endswith('.pyc') or f.endswith('.py'))]
++        return [f[:f.rfind('.')] for f in os.listdir(command_dir)
++                if not f.startswith('_') and (f.endswith('.py') or f.endswith('.pyc'))]
      except OSError:
          return []
  
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/python-django-pyc.patch?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list