[tryton-debian-vcs] tryton-modules-party-siret branch debian-wheezy-2.2 created. 0c155de171097e22cc852f52cc7ddbcea8af58b7

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Nov 27 17:03:53 UTC 2013


The following commit has been merged in the debian-wheezy-2.2 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-party-siret.git;a=commitdiff;h=0c155de171097e22cc852f52cc7ddbcea8af58b7
commit 0c155de171097e22cc852f52cc7ddbcea8af58b7
Author: Daniel Baumann <daniel at debian.org>
Date:   Sat Jun 30 18:21:03 2012 +0200

    Releasing debian version 2.2.1-2.

diff --git a/debian/changelog b/debian/changelog
index c6b70d1..43e7565 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+tryton-modules-party-siret (2.2.1-2) unstable; urgency=low
+
+  * Updating maintainers field.
+  * Updating vcs fields.
+  * Correcting copyright file to match format version 1.0.
+  * Switching to xz compression.
+  * Updating to debhelper version 9.
+
+ -- Daniel Baumann <daniel at debian.org>  Sat, 30 Jun 2012 18:20:45 +0200
+
 tryton-modules-party-siret (2.2.1-1) unstable; urgency=low
 
   * Updating to Standards-Version: 3.9.3, no changes needed.
commit a240115344212b49f46ba2c954cd19e309b747a0
Author: Daniel Baumann <daniel at debian.org>
Date:   Sat Jun 30 18:02:29 2012 +0200

    Updating to debhelper version 9.

diff --git a/debian/compat b/debian/compat
index 45a4fb7..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-8
+9
diff --git a/debian/control b/debian/control
index 24216ac..82b0692 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Debian Tryton Maintainers <maintainers at debian.tryton.org>
 Uploaders: Daniel Baumann <daniel at debian.org>, Mathias Behrle <mathiasb at m9s.biz>
 Dm-Upload-Allowed: yes
-Build-Depends: debhelper (>= 8), python (>= 2.6.6-3~), python-setuptools
+Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), python-setuptools
 Standards-Version: 3.9.3
 Homepage: http://www.tryton.org/
 Vcs-Browser: http://debian.tryton.org/gitweb/?p=packages/tryton-modules-party-siret.git
commit 643c19ec45021df96855e956879ea51f672e3071
Author: Daniel Baumann <daniel at debian.org>
Date:   Sat Jun 30 17:54:36 2012 +0200

    Switching to xz compression.

diff --git a/debian/rules b/debian/rules
index e32b791..1ae0776 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,3 +7,6 @@ override_dh_auto_clean:
 	dh_auto_clean
 
 	rm -rf *.egg-info
+
+override_dh_builddeb:
+	dh_builddeb -- -Zxz -z9
diff --git a/debian/source/options b/debian/source/options
index d053b65..22a4de9 100644
--- a/debian/source/options
+++ b/debian/source/options
@@ -1,2 +1,2 @@
-compression = gzip
+compression = xz
 compression-level = 9
commit df6d02caf5f31c8fe08012e546d13d355b211dd1
Author: Daniel Baumann <daniel at debian.org>
Date:   Sat Jun 30 17:50:24 2012 +0200

    Correcting copyright file to match format version 1.0.

diff --git a/debian/copyright b/debian/copyright
index 0f65414..6d1f800 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,15 +2,15 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 
 Files: *
 Copyright:
- (C) 2010-2012 Cedric Krier
- (C) 2010-2011 Bertrand Chenal
- (C) 2010-2012 B2CK SPRL
+           2010-2012 Cedric Krier
+           2010-2011 Bertrand Chenal
+           2010-2012 B2CK SPRL
 License: GPL-3+
 
 Files: debian/*
 Copyright:
- (C) 2010-2012 Daniel Baumann <daniel at debian.org>
- (C) 2012 Mathias Behrle <mathiasb at m9s.biz>
+           2010-2012 Daniel Baumann <daniel at debian.org>
+           2012 Mathias Behrle <mathiasb at m9s.biz>
 License: GPL-3+
 
 License: GPL-3+
commit f0b8ba9d408ff9de3d8d29c2e79e7e202d6191e1
Author: Daniel Baumann <daniel at 127011.net>
Date:   Sat Jun 30 16:55:04 2012 +0200

    Updating vcs fields.

diff --git a/debian/control b/debian/control
index a52fd62..24216ac 100644
--- a/debian/control
+++ b/debian/control
@@ -7,8 +7,8 @@ Dm-Upload-Allowed: yes
 Build-Depends: debhelper (>= 8), python (>= 2.6.6-3~), python-setuptools
 Standards-Version: 3.9.3
 Homepage: http://www.tryton.org/
-Vcs-Browser: http://git.debian-maintainers.org/?p=tryton/tryton-modules-party-siret.git
-Vcs-Git: git://git.debian-maintainers.org/git/tryton/tryton-modules-party-siret.git
+Vcs-Browser: http://debian.tryton.org/gitweb/?p=packages/tryton-modules-party-siret.git
+Vcs-Git: git://debian.tryton.org/git/packages/tryton-modules-party-siret.git
 X-Python-Version: >= 2.6
 
 Package: tryton-modules-party-siret
commit 4d6c45ddbb365dc21f0439bedf7131d5161c10d7
Author: Daniel Baumann <daniel at 127011.net>
Date:   Sat Jun 30 16:52:30 2012 +0200

    Updating maintainers field.

diff --git a/debian/control b/debian/control
index b8c6cf4..a52fd62 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,7 @@
 Source: tryton-modules-party-siret
 Section: python
 Priority: optional
-Maintainer: Debian Tryton Maintainers <tryton at lists.debian-maintainers.org>
+Maintainer: Debian Tryton Maintainers <maintainers at debian.tryton.org>
 Uploaders: Daniel Baumann <daniel at debian.org>, Mathias Behrle <mathiasb at m9s.biz>
 Dm-Upload-Allowed: yes
 Build-Depends: debhelper (>= 8), python (>= 2.6.6-3~), python-setuptools
commit 93bd6cdc4e4824ed68db0b41095c1658d81756aa
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed May 9 13:12:37 2012 +0200

    Releasing debian version 2.2.1-1.

diff --git a/debian/changelog b/debian/changelog
index 64b0477..c6b70d1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+tryton-modules-party-siret (2.2.1-1) unstable; urgency=low
+
+  * Updating to Standards-Version: 3.9.3, no changes needed.
+  * Updating year in copyright.
+  * Adding myself to copyright.
+  * Adding Format header for DEP5.
+  * Merging upstream version 2.2.1.
+  * Updating years in copyright.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Wed, 09 May 2012 12:03:59 +0200
+
 tryton-modules-party-siret (2.2.0-1) unstable; urgency=low
 
   * Bumping X-Python-Version to >=2.6.
commit 05c9b69927c148294badc280dbbee9b2cc8d806f
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed May 9 12:03:53 2012 +0200

    Updating years in copyright.

diff --git a/debian/copyright b/debian/copyright
index 7bbc9fb..0f65414 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,9 +2,9 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 
 Files: *
 Copyright:
- (C) 2010-2011Cedric Krier
- (C) 2010-2011Bertrand Chenal
- (C) 2010-2011B2CK SPRL
+ (C) 2010-2012 Cedric Krier
+ (C) 2010-2011 Bertrand Chenal
+ (C) 2010-2012 B2CK SPRL
 License: GPL-3+
 
 Files: debian/*
commit 39f58dd1086e1e0933f15e83e5aa4cd404b16aed
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed May 9 12:01:17 2012 +0200

    Merging upstream version 2.2.1.

diff --git a/CHANGELOG b/CHANGELOG
index 235fcce..9296c78 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 2.2.1 - 2012-05-07
+* Bug fixes (see mercurial logs for details)
+
 Version 2.2.0 - 2011-10-24
 * Bug fixes (see mercurial logs for details)
 
diff --git a/COPYRIGHT b/COPYRIGHT
index b088e8e..5c1aee7 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,6 +1,6 @@
-Copyright (C) 2010-2011 Cédric Krier.
+Copyright (C) 2010-2012 Cédric Krier.
 Copyright (C) 2010-2011 Bertrand Chenal.
-Copyright (C) 2010-2011 B2CK SPRL.
+Copyright (C) 2010-2012 B2CK SPRL.
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
diff --git a/PKG-INFO b/PKG-INFO
index c07078d..68d98e4 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
 Name: trytond_party_siret
-Version: 2.2.0
+Version: 2.2.1
 Summary: 
 Add SIRET/SIREN number fields on party.
     These numbers are used in France, for geographical identification of
diff --git a/__tryton__.py b/__tryton__.py
index 37c3ed0..91312ff 100644
--- a/__tryton__.py
+++ b/__tryton__.py
@@ -8,7 +8,7 @@
     'name_es_CO' : 'Terceros - SIRET',
     'name_es_ES': 'Terceros - SIRET',
     'name_fr_FR': 'Tiers - Siret',
-    'version' : '2.2.0',
+    'version' : '2.2.1',
     'author' : 'B2CK',
     'email': 'info at b2ck.com',
     'website': 'http://www.tryton.org/',
diff --git a/address.py b/address.py
index 3200bc1..0f39bce 100644
--- a/address.py
+++ b/address.py
@@ -36,8 +36,9 @@ class Address(Model):
         Check validity of SIRET
         '''
         for address in self.browse(ids):
-            if address.siret and not luhn.validate(address.siret):
-                return False
+            if address.siret:
+                if len(address.siret) != 14 or not luhn.validate(address.siret):
+                    return False
         return True
 
 Address()
diff --git a/party.py b/party.py
index d9a34e6..66a81ff 100644
--- a/party.py
+++ b/party.py
@@ -26,8 +26,9 @@ class Party(Model):
         Check validity of SIREN
         '''
         for party in self.browse(ids):
-            if party.siren and not luhn.validate(party.siren):
-                return False
+            if party.siren:
+                if len(party.siren) != 9 or not luhn.validate(party.siren):
+                    return False
         return True
 
 Party()
diff --git a/trytond_party_siret.egg-info/PKG-INFO b/trytond_party_siret.egg-info/PKG-INFO
index 0619d59..635528b 100644
--- a/trytond_party_siret.egg-info/PKG-INFO
+++ b/trytond_party_siret.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
 Name: trytond-party-siret
-Version: 2.2.0
+Version: 2.2.1
 Summary: 
 Add SIRET/SIREN number fields on party.
     These numbers are used in France, for geographical identification of
-- 
tryton-modules-party-siret



More information about the tryton-debian-vcs mailing list