debian/0000755000000000000000000000000011753012570007167 5ustar debian/docs0000644000000000000000000000003411237306221010033 0ustar README debian/README.Debian debian/patches/0000755000000000000000000000000011753005300010607 5ustar debian/patches/series0000644000000000000000000000002111753005300012015 0ustar # 01-color.patch debian/patches/01_color.dpatch0000644000000000000000000001215011753005300013411 0ustar From: Subject: No description. diff -urNad cfv-1.18.1/cfv /tmp/dpep.HlaHol/cfv-1.18.1/cfv --- cfv-1.18.1/cfv Mon Feb 4 20:16:49 2008 +++ /tmp/dpep.HlaHol/cfv-1.18.1/cfv Mon Feb 4 20:39:25 2008 @@ -388,39 +388,97 @@ end.subcount = end.subcount + 1 def print_stats(self): - pinfo('%i files'%self.num,'') - pinfo(', %i OK' %self.ok,'') + + if not config.color: + colorFileCount = '' + colorOkay = '' + colorBadCRC = '' + colorBadSize = '' + colorNotFound ='' + colorFileError = '' + colorUnverified = '' + colorChksumFileError = '' + colorMisnamed = '' + colorDiffCase = '' + colorQuoted = '' + colorTextMode = '' + colorStats = '' + colorStop = '' + + else: + colorBlack = '\033[22;30m ' + colorRed = '\033[22;31m ' + colorGreen = '\033[22;32m ' + colorBrown = '\033[22;33m ' + colorBlue = '\033[22;34m ' + colorMagenta = '\033[22;35m ' + colorCyan = '\033[22;36m ' + colorGray = '\033[22;37m ' + colorDarkGray = '\033[01;30m ' + colorLightRed = '\033[01;31m ' + colorLightGreen = '\033[01;32m ' + colorYellow = '\033[01;33m ' + colorLightBlue = '\033[01;34m ' + colorLightMagenta = '\033[01;35m ' + colorLightCyan = '\033[01;36m ' + colorWhite = '\033[01;37m ' + colorStop = '\033[0m' + + colorFileCount = '' + colorOkay = colorCyan + colorBadCRC = colorRed + colorBadSize = colorRed + colorNotFound = colorRed + colorFileError = colorRed + colorUnverified = colorRed + colorChksumFileError = colorRed + colorMisnamed = colorRed + colorDiffCase = colorRed + colorQuoted = colorBlue + colorTextMode = colorBlue + colorStats = colorBlue + + + pinfo('%s%i files%s' %(colorFileCount, self.num, colorStop),'') + pinfo(', %s%i OK%s' %(colorOkay, self.ok, colorStop),'') + + if self.badcrc: - pinfo(', %i badcrc' %self.badcrc,'') + pinfo(', %s%i badcrc%s' %(colorBadCRC, self.badcrc, colorStop),'') if self.badsize: - pinfo(', %i badsize' %self.badsize,'') + pinfo(', %s%i badsize%s' %(colorBadSize, self.badsize, colorStop),'') if self.notfound: - pinfo(', %i not found' %self.notfound,'') + pinfo(', %s%i not found%s' %(colorNotFound, self.notfound, colorStop),'') if self.ferror: - pinfo(', %i file errors' %self.ferror,'') + pinfo(', %s%i file errors%s' %(colorFileError, self.ferror, colorStop),'') if self.unverified: - pinfo(', %i unverified' %self.unverified,'') + pinfo(', %s%i unverified%s' %(colorUnverified, self.unverified, colorStop),'') if self.cferror: - pinfo(', %i chksum file errors' %self.cferror,'') + pinfo(', %s%i chksum file errors%s' %(colorChksumFileError, self.cferror, colorStop),'') if self.misnamed: - pinfo(', %i misnamed' %self.misnamed,'') + pinfo(', %s%i misnamed%s' %(colorMisnamed, self.misnamed, colorStop),'') if self.diffcase: - pinfo(', %i differing cases' %self.diffcase,'') + pinfo(', %s%i differing cases%s' %(colorDiffCase, self.diffcase, colorStop),'') if self.quoted: - pinfo(', %i quoted filenames' %self.quoted,'') + pinfo(', %s%i quoted filenames%s' %(colorQuoted, self.quoted, colorStop),'') if self.textmode: - pinfo(', %i tested in textmode' %self.textmode,'') - - elapsed=time.time()-self.starttime - pinfo('. %.3f seconds, '%(elapsed),'') - if elapsed==0.0: - pinfo('%.1fK'%(self.bytesread/1024.0),'') - else: - pinfo('%.1fK/s'%(self.bytesread/elapsed/1024.0),'') + pinfo(', %s%i tested in textmode%s' %(colorTextMode, self.textmode, colorStop),'') - pinfo('\n','') + if not config.truncate: + elapsed=time.time()-self.starttime + pinfo('. ' + colorStats + '%.3f seconds, '%(elapsed),'' + colorStop) + if elapsed==0.0: + pinfo(colorStats + '%.1fK'%(self.bytesread/1024.0),'' + colorStop) + else: + pinfo(colorStats + '%.1fK/s'%(self.bytesread/elapsed/1024.0),'' + colorStop) + pinfo('\n','') + else: + pinfo('\n','') + class Config: + color=0 + truncate=0 verbose=0 # -1=quiet 0=norm 1=noisy docrcchecks=1 dirsort=1 @@ -2350,6 +2408,8 @@ perror(' -VV don\'t print status line at end either') perror(' -q quiet mode. check exit code for success.') perror(' -Q mostly quiet mode. only prints status lines.') + perror(' -c output in color.') + perror(' -cc output in color with truncated status line') perror(' -zz force making gzipped files, even if not ending in .gz') perror(' -z make gzipped files in auto create mode') perror(' -Z don\'t create gzipped files automatically. (default)') @@ -2395,7 +2455,7 @@ typename='auto' try: - optlist, args = getopt.getopt(argv, 'rRlLTCt:f:mMnNsSp:uUiIvVzZqQh?', + optlist, args = getopt.getopt(argv, 'rRlLTCct:f:mMnNsSp:uUiIvVzZqQh?', ['list=', 'list0=', 'fixpaths=', 'strippaths=', 'showpaths=','renameformat=','progress=','unquote=','help','version', 'announceurl=','piece_size_pow2=', #torrent options ]) @@ -2424,6 +2484,10 @@ for o,a in optlist: if o=='-T': mode=0 + elif o=='-c': + config.color=1 + if prevopt=='-c': + config.truncate=1 elif o=='-C': mode=1 elif o=='-t': debian/control0000644000000000000000000000117411753005300010566 0ustar Source: cfv Section: utils Priority: optional Maintainer: Stefan Alfredsson Build-Depends: python-all (>=2.6.7), debhelper (>= 9) Standards-Version: 3.9.3 Homepage: http://cfv.sourceforge.net/ Package: cfv Architecture: all Depends: ${python:Depends}, ${misc:Depends} Suggests: python-imaging, bittorrent | bittornado Description: versatile file checksum creator and verifier cfv is a utility to test and create a wide range of checksum verification files. It currently supports testing and creating sfv, sfvmd5, csv, csv2, csv4, md5, bsdmd5, torrent and crc files. Test-only support is available for par, par2. debian/patched/0000755000000000000000000000000011237521273010601 5ustar debian/dirs0000644000000000000000000000005611753005300010045 0ustar usr/bin usr/share/man/man1 usr/share/pyshared debian/changelog0000644000000000000000000001714411753006132011045 0ustar cfv (1.18.3-2) unstable; urgency=low * Package cleanup below by Jari Aalto - thanks! * Remove deprecated dpatch and upgrade to packaging format "3.0 quilt". * Update to Standards-Version to 3.9.3 and debhelper to 9. * Move to full dh(1) and simplify rules file. Move from deprecated python-support to dh_python2, see: http://wiki.debian.org/Python/TransitionToDHPython2 * Fix build-depends-on-python-dev-with-no-arch-any (Lintian) by changing depends python-dev to python-all. -- Stefan Alfredsson Thu, 10 May 2012 20:39:46 +0200 cfv (1.18.3-1) unstable; urgency=low * New upstream release and python 2.6 compatibility (Closes: #532056) * Included note in README.Debian about iso-8859-x and utf problems (Closes: #466591) * Improvements below by Krzysztof Klimonda (thanks!) * debian/rules: - Simplify rules, make it compatible with Python 2.6. * debian/control: - Add versioned Build-Depends on debhelper and python packages. - Add Homepage. - Make package depends on ${misc:Depends}. * debian/copyright: - Use GPL-2 instead of GPL symlink. * debian/compat: - Make package compatible with debhelper 7. -- Stefan Alfredsson Sat, 08 Aug 2009 16:27:25 +0200 cfv (1.18.2-1) unstable; urgency=low * New upstream release * Fix for py 2.5 "struct integer overflow warning" (Closes: #479037, #479037) * torrent clients are now suggested rather than recommended (Closes: #337796) * Color patch temporarily removed due to incompatiblitiy with new upsteam version -- Stefan Alfredsson Tue, 24 Jun 2008 22:41:40 +0000 cfv (1.18.1-2) unstable; urgency=low * Color patch from "xi iota" applied. -- Stefan Alfredsson Mon, 4 Feb 2008 19:50:15 +0100 cfv (1.18.1-1) unstable; urgency=low * New upstream release * Acknowledge FTBFS unrepresentable changes NMU (Closes: #357216). Thanks Matej! * Acknowledge python transition NMU (Closes: #380793). Thanks Pierre! * Bump Standards-Version to 3.7.3 -- Stefan Alfredsson Wed, 30 Jan 2008 06:57:24 +0100 cfv (1.18-2.2) unstable; urgency=low * Non-maintainer upload. * Update package to the last python policy (Closes: 380793).. * Bump Standards-Version to 3.7.2. * Bump DH_COMPAT to 4. -- Pierre Habouzit Sun, 3 Sep 2006 22:54:37 +0200 cfv (1.18-2.1) unstable; urgency=medium * Non-maintainer upload. * debian/rules: Invoke `make distclean' to avoid spurious diffs. Closes: #357216. -- Matej Vela Mon, 27 Mar 2006 18:44:40 +0200 cfv (1.18-2) unstable; urgency=low * Fixed grammatical and spelling errors (closes: #298519) * Updated standards-version -- Stefan Alfredsson Thu, 10 Mar 2005 07:13:18 +0100 cfv (1.18-1) unstable; urgency=low * New upstream release - adds sha1 and torrent related fixes -- Stefan Alfredsson Fri, 14 Jan 2005 11:34:19 +0100 cfv (1.17-1) unstable; urgency=low * New upstream release * To use bittorrent checking, bittorrent or bittornado must (at the moment) be installed, therefore a Recommends: was added on these packages (Closes: #259391) -- Stefan Alfredsson Fri, 16 Jul 2004 15:23:17 +0200 cfv (1.16-1) unstable; urgency=low * New upstream release -- Stefan Alfredsson Fri, 21 Nov 2003 13:52:55 +0100 cfv (1.15-2) unstable; urgency=low * An automatically generated wrapper script tried to use python 2.2, due to a hardcoded version in debian/rules - updated the rules-file to use python2.3 (Closes: #207062). -- Stefan Alfredsson Mon, 25 Aug 2003 07:16:29 +0200 cfv (1.15-1) unstable; urgency=low * New upstream release * Python dependency moved to 2.3, as per Matthias Klose request -- Stefan Alfredsson Sun, 24 Aug 2003 18:54:03 +0200 cfv (1.13-1) unstable; urgency=low * New upstream release -- Stefan Alfredsson Thu, 19 Dec 2002 07:39:44 +0100 cfv (1.12-3) unstable; urgency=low * Somehow the last upload got lost in the upload queue of ftp.uk.debian.org * Updated to latest policy * Python dependency moved to 2.2 -- Stefan Alfredsson Mon, 25 Nov 2002 18:59:05 +0100 cfv (1.12-2) unstable; urgency=low * Added python-imaging suggestion, to get image dimensions for pictures. -- Stefan Alfredsson Tue, 24 Sep 2002 14:54:06 +0200 cfv (1.12-1) unstable; urgency=low * New upstream release -- Stefan Alfredsson Tue, 24 Sep 2002 12:04:36 +0200 cfv (1.11-1) unstable; urgency=low * New upstream release -- Stefan Alfredsson Sun, 14 Apr 2002 21:40:43 +0200 cfv (1.10-1) unstable; urgency=low * New upstream release -- Stefan Alfredsson Sat, 8 Dec 2001 00:04:22 +0100 cfv (1.9-4) unstable; urgency=low * Removed dependency on package not in debian archive (closes: #116867) * Upstream changes to support 2.1 (new python policy) -- Stefan Alfredsson Mon, 5 Nov 2001 23:02:12 +0100 cfv (1.9-3) unstable; urgency=low * Update to the new python policy. -- Matthew Mueller Sun, 4 Nov 2001 12:52:42 -0700 cfv (1.9-2) unstable; urgency=low * First upload to the debian archive; Previous versions have been packaged by the upstream author and offered locally, but to get the package into the official debian archive it must be maintained by a debian developer. Hence, this upload by me (after checking that the packaging was OK). -- Stefan Alfredsson Wed, 19 Sep 2001 18:32:39 +0200 cfv (1.9-1) unstable; urgency=low * New release. -- Matthew Mueller Mon, 3 Sep 2001 15:20:25 -0700 cfv (1.8-1) unstable; urgency=low * New release. -- Matthew Mueller Thu, 17 May 2001 13:51:23 -0700 cfv (1.7.2-1) unstable; urgency=low * New release. -- Matthew Mueller Tue, 27 Feb 2001 07:38:05 -0700 cfv (1.7.1-1) unstable; urgency=low * New release. -- Matthew Mueller Thu, 22 Feb 2001 03:33:05 -0700 cfv (1.7-1) unstable; urgency=low * New release. -- Matthew Mueller Sun, 19 Nov 2000 17:16:51 -0700 cfv (1.6-1) unstable; urgency=low * New release. -- Matthew Mueller Sun, 5 Nov 2000 14:00:00 -0700 cfv (1.5.2-1) unstable; urgency=low * New release. -- Matthew Mueller Tue, 17 Oct 2000 01:34:48 -0700 cfv (1.5.1-1) unstable; urgency=low * New release. * Use debian python postinst/prerm scripts. -- Matthew Mueller Thu, 12 Oct 2000 15:54:08 -0700 cfv (1.5-1) unstable; urgency=low * New release. -- Matthew Mueller Thu, 12 Oct 2000 01:54:59 -0700 cfv (1.4-1) unstable; urgency=low * New release. * Use make install-wrapper method. -- Matthew Mueller Thu, 5 Oct 2000 22:23:54 -0700 cfv (1.3-1) unstable; urgency=low * New release * Updated depends: and recommends: to include python-fchksum -- Matthew Mueller Wed, 16 Aug 2000 04:43:41 -0700 cfv (1.2-1) unstable; urgency=low * New release -- Matthew Mueller Fri, 11 Aug 2000 04:33:55 -0700 cfv (1.1-1) unstable; urgency=low * New release -- Matthew Mueller Mon, 10 Jul 2000 20:12:29 -0700 cfv (1.0-1) unstable; urgency=low * Initial Release. * Added (empty) clean rule to Makefile. -- Matthew Mueller Fri, 30 Jun 2000 15:35:14 -0700 debian/source/0000755000000000000000000000000011753005300010460 5ustar debian/source/format0000644000000000000000000000001411753005300011666 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000150511237477700011132 0ustar This package was debianized by Matthew Mueller on Fri, 30 Jun 2000 15:35:14 -0700. Upstream Author: Matthew Mueller. This software is Copyright (c) 2000-2009 by Matthew Mueller. 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 the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. debian/README.Debian0000644000000000000000000000127211237306544011236 0ustar Problems with "missing files" and international characters? ------------------------------------------------------------- From http://bugs.debian.org/466591 "When verifying .md5 or .cfv files which contain filenames containing chars with values > 127 (in ISO-8859), cfv reports the corresponding files as missing. ... cfv (1.x) has no understanding of encodings for text checksum files, and since the files are encoded in iso-8859-? but your system is probably using utf-8 for filenames, the bytes just aren't going to match up. For the text-based formats you can work around this pretty easily by manually converting the files: "iconv -f iso-8859-1 -t utf-8 foo.md5 > foo.utf8.md5" debian/compat0000644000000000000000000000000211753005300010356 0ustar 9 debian/rules0000755000000000000000000000040511753005300010237 0ustar #!/usr/bin/make -f include /usr/share/python/python.mk override_dh_auto_install: make install-wrapper-only prefix=/usr mandir=/usr/share/man DESTDIR=debian/cfv mv debian/cfv/*.py debian/cfv/usr/share/pyshared/cfv.py %: dh $@ --with python2 # End of file