diff --git a/debian/changelog b/debian/changelog index a4b653826c058edbe26be28f8440d2fd13460b5f..c7d75f2f5f8ad407fba0a400898fa1d37b9f45dc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,17 +1,26 @@ -dcpman (0.1.5) unstable; urgency=medium +dcpman (0.1.7) unstable; urgency=medium - * Tagged debian/0.1.4 - * modified: debian/changelog modified: fabfile.py - * Now logs exception as well. + * Release new version. + + -- Adar Nimrod <nimrod@nimrod.private> Thu, 02 Oct 2014 14:13:56 +0300 + +dcpman (0.1.6) unstable; urgency=medium * Now logs exception as well. * Added simple search and parsing for CPLs (ID and issue date). + -- Adar Nimrod <nimrod@nimrod.private> Thu, 02 Oct 2014 14:10:38 +0300 + +dcpman (0.1.5) unstable; urgency=medium + + * Now logs exception as well. + -- Adar Nimrod <nimrod@nimrod.private> Thu, 02 Oct 2014 14:09:29 +0300 dcpman (0.1.4) unstable; urgency=medium * Tagged debian/0.1.4 + * modified: debian/changelog modified: fabfile.py -- Adar Nimrod <nimrod@shore.co.il> Thu, 25 Sep 2014 15:10:18 +0300 diff --git a/fabfile.py b/fabfile.py index 712a616a2596c3c876f35f327b2eb70b9e42085b..4f4827dae481caef4b0d0e6b78dc0778b9e3ce29 100644 --- a/fabfile.py +++ b/fabfile.py @@ -3,6 +3,7 @@ from fabric.api import task, local, settings @task def publish (): + local ('git dch -R') build () for dist in ['wheezy', 'jessie', 'sid']: local ('''reprepro includedeb ''' + dist + ''' ../dcpman_*.deb''') diff --git a/source/dcp.py b/source/dcp.py index 7139bb5f05d4348ea5c8d80445a63167b87bb3a8..d945f612fc8f1e50ed60d6c3109fe8dc5c942c7d 100755 --- a/source/dcp.py +++ b/source/dcp.py @@ -2,7 +2,7 @@ from hashlib import sha1 from base64 import b64encode from os import stat, listdir, mkdir, statvfs -from os.path import isdir, basename +from os.path import isdir, basename,exists from shutil import copyfile from xml.dom.minidom import parse import sys @@ -13,7 +13,7 @@ class Asset (object): def verifySize (self): '''verify that the size of the file is correct, if present.''' try: - return stat (self.fullpath).st_size == self.size + return exists (self.fullpath) and stat (self.fullpath).st_size == self.size except AttributeError: return True