Skip to content
Snippets Groups Projects
Commit 6329d117 authored by nimrod's avatar nimrod
Browse files

Improved handling of missing files

parent 77d0e203
No related branches found
No related tags found
No related merge requests found
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
......
......@@ -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''')
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment