[csw-devel] SF.net SVN: gar:[20869] csw/mgar/pkg/lang-python/dnspython/trunk

pfelecan at users.sourceforge.net pfelecan at users.sourceforge.net
Fri Apr 26 14:05:22 CEST 2013


Revision: 20869
          http://gar.svn.sourceforge.net/gar/?rev=20869&view=rev
Author:   pfelecan
Date:     2013-04-26 12:05:21 +0000 (Fri, 26 Apr 2013)
Log Message:
-----------
lang-python/dnspython: avoid postinstal compilation warning

Modified Paths:
--------------
    csw/mgar/pkg/lang-python/dnspython/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/lang-python/dnspython/trunk/files/0001-consistent-use-of-tabs-and-spaces-in-indentation.patch

Modified: csw/mgar/pkg/lang-python/dnspython/trunk/Makefile
===================================================================
--- csw/mgar/pkg/lang-python/dnspython/trunk/Makefile	2013-04-26 11:54:49 UTC (rev 20868)
+++ csw/mgar/pkg/lang-python/dnspython/trunk/Makefile	2013-04-26 12:05:21 UTC (rev 20869)
@@ -5,7 +5,7 @@
 CATEGORIES	=	python
 GARTYPE		=	v2
 
-DESCRIPTION = Brief description
+DESCRIPTION = A DNS toolkit for Python
 define BLURB
   dnspython is a DNS toolkit for Python. It supports almost all record
   types. It can be used for queries, zone transfers, and dynamic
@@ -19,6 +19,7 @@
 
 MASTER_SITES	=	http://www.dnspython.org/kits/$(VERSION)/
 DISTFILES 		=	$(DISTNAME).tar.gz
+PATCHFILES		+=	0001-consistent-use-of-tabs-and-spaces-in-indentation.patch
 SPKG_SOURCEURL	=	$(MASTER_SITES)
 BUILD_DEP_PKGS	=	CSWpysetuptools
 PACKAGES		=	CSWpy-dnspython

Added: csw/mgar/pkg/lang-python/dnspython/trunk/files/0001-consistent-use-of-tabs-and-spaces-in-indentation.patch
===================================================================
--- csw/mgar/pkg/lang-python/dnspython/trunk/files/0001-consistent-use-of-tabs-and-spaces-in-indentation.patch	                        (rev 0)
+++ csw/mgar/pkg/lang-python/dnspython/trunk/files/0001-consistent-use-of-tabs-and-spaces-in-indentation.patch	2013-04-26 12:05:21 UTC (rev 20869)
@@ -0,0 +1,39 @@
+From 32c94706db51f6b4791115ce5fd735a7913ce145 Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Fri, 26 Apr 2013 14:01:16 +0200
+Subject: [PATCH] consistent use of tabs and spaces in indentation
+
+---
+ dns/edns.py    | 2 +-
+ dns/entropy.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/dns/edns.py b/dns/edns.py
+index 4d4eaa8..db184dd 100644
+--- a/dns/edns.py
++++ b/dns/edns.py
+@@ -114,7 +114,7 @@ class GenericOption(Option):
+     from_wire = classmethod(from_wire)
+ 
+     def _cmp(self, other):
+-	return cmp(self.data, other.data)
++        return cmp(self.data, other.data)
+ 
+ _type_to_class = {
+ }
+diff --git a/dns/entropy.py b/dns/entropy.py
+index d380cf8..1ffbc7b 100644
+--- a/dns/entropy.py
++++ b/dns/entropy.py
+@@ -112,7 +112,7 @@ class EntropyPool(object):
+         else:
+             rand = self.random_8
+             max = 255
+-	return (first + size * rand() // (max + 1))
++        return (first + size * rand() // (max + 1))
+ 
+ pool = EntropyPool()
+ 
+-- 
+1.8.1.4
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list