debian/0000755000000000000000000000000011762454734007203 5ustar debian/changelog0000644000000000000000000000463111762344336011055 0ustar gcp (0.1.3-2) unstable; urgency=low * The "jwilk-reviewed" Debian release. * debian/copyright: + Add missing dots in Expat license statement. + Use correct license short name: GPL-3+. + Put GPL-3+ in a separate license stanza, as required. + Use 1.0 DEP5 copyright. + Update copyright years. * debian/control: + Promote debhelper from Build-Depends-Indep to Build-Depends since dh is used in the clean target (Thanks ansgar). + Remove initial capital in package synopsis. + Add build dependencies needed to run build time tests. + Change the version build dependency on debhelper from (>= 8.0.0) to (>= 8). + Bump Standards-Version to 3.9.3 (no changes needed) * debian/rules: + Remove useless comments. + Activate build time tests. * debian/patches: + Fix some typos in README and gcp manpage (thanks jwilk). + Provide more meaningful traceback in case of exception related to dbus (thanks jwilk). -- Thomas Preud'homme Sat, 02 Jun 2012 10:03:30 +0200 gcp (0.1.3-1) unstable; urgency=low * New upstream release: + Improve timestamp preservation and document its limit. (Closes: #626787) + Enhance manual: mention default options and document possible attributes for --preserve option + Copy of a directory with a target name fixed. * Drop files and patches merged upstream: + 0002-Improve-precision-of-timestamp-when-preserving-it.patch + debian/gcp.1 * Move debhelper from Build-Depends to Build-Depends-Indep. * debian/copyright: + Document global license and copyright * debian/watch: + Make second part of the URL match against gcp-version.tar.bz2 instead of gcp_version.tar.bz2. -- Thomas Preud'homme Tue, 21 Jun 2011 00:16:29 +0200 gcp (0.1.1-2) unstable; urgency=low * Fix typos in gcp manpages * Bump Standards-Version from 3.9.1 to 3.9.2 * debian/rules: + Fix *.mo files generation. * debian/copyright: + Update to DEP5 candidate format. -- Thomas Preud'homme Mon, 03 Jan 2011 10:01:08 +0100 gcp (0.1.1-1) unstable; urgency=low * Initial release (Closes: #604178). * Create a manpage for gcp. * debian/patches: - gcp also suggest to install python-progressbar when it is absent. * debian/copyright: - Use DEP5 format. -- Thomas Preud'homme Mon, 24 Nov 2010 13:22:25 +0100 debian/source/0000755000000000000000000000000011762344336010477 5ustar debian/source/options0000644000000000000000000000004311762344336012112 0ustar extend-diff-ignore = "i18n/.*\.mo" debian/source/format0000644000000000000000000000001411762344336011705 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000000711762344336010047 0ustar README debian/watch0000644000000000000000000000023411762344336010227 0ustar # Compulsory line, this is a version 3 file version=3 # Check new version on upstream ftp server ftp://ftp.goffi.org/gcp/gcp-(.*)\.tar\.bz2 debian uupdate debian/gcp.dirs0000644000000000000000000000001611762344336010630 0ustar usr/share/gcp debian/gcp.links0000644000000000000000000000003611762344336011011 0ustar usr/share/gcp/gcp usr/bin/gcp debian/gcp.docs0000644000000000000000000000000711762344336010617 0ustar README debian/compat0000644000000000000000000000000211762344336010375 0ustar 8 debian/rules0000755000000000000000000000112211762344336010253 0ustar #!/usr/bin/make -f ALLPOFILES:=$(wildcard *.po) POFILES:=$(filter-out gcp.po,$(ALLPOFILES)) MOPATH:=i18n/%/LC_MESSAGES MOFILES:=$(patsubst %.po,$(MOPATH)/gcp.mo,$(POFILES)) clean: rm -f $(MOFILES) rm -rf .dbus .gcp dh clean build: $(MOFILES) $(MOPATH)/gcp.mo: %.po mkdir -p $(@D) msgfmt -o $@ $< override_dh_auto_clean: override_dh_auto_configure: override_dh_auto_build: override_dh_auto_install: override_dh_auto_test: ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" "" unset DBUS_SESSION_BUS_ADDRESS ; \ HOME="$$PWD" PATH="$$PWD:$$PATH" xvfb-run -a ./test_gcp.py endif %: dh $@ debian/copyright0000644000000000000000000000417611762344336011142 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: gcp Upstream-Contact: Jérôme Poisson Source: http://wiki.goffi.org/wiki/Gcp/en License: GPL-3+ Files: * Copyright: 2010-2011 Jérôme Poisson License: GPL-3+ License: GPL-3+ gcp 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 3 of the License, or (at your option) any later version. . gcp 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. . You should have received a copy of the GNU General Public License along with gcp. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". Files: debian/* Copyright: 2010-2012 Thomas Preud'homme License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000644000000000000000000000160011762344336010577 0ustar Source: gcp Section: utils Priority: extra Maintainer: Thomas Preud'homme Build-Depends: debhelper (>= 8), python, python-gobject, python-dbus, xvfb, xauth, dbus-x11 Standards-Version: 3.9.3 Homepage: http://wiki.goffi.org/wiki/Gcp/en Vcs-Git: git://git.debian.org/collab-maint/gcp.git Vcs-Browser: http://git.debian.org/?p=collab-maint/gcp.git;a=summary Package: gcp Architecture: all Depends: ${misc:Depends}, python (>= 2.6), python-gobject, python-dbus Recommends: python-progressbar Description: advanced command line file copy system gcp is an advanced command line file copy system with an interface similar to that of cp. It features: - transfer progression indication - continuous copying on error (skip to next file) - copy status logging - name mangling to handle target filesystem limitations - forced copy serialization - transfer lists management debian/gcp.install0000644000000000000000000000004511762344336011337 0ustar gcp usr/share/gcp i18n usr/share/gcp debian/gcp.manpages0000644000000000000000000000000611762344336011461 0ustar gcp.1 debian/patches/0000755000000000000000000000000011762344336010626 5ustar debian/patches/0001-Adapt-messages-to-Debian.patch0000644000000000000000000000402511762344336016664 0ustar From ebcd295a6745614c45becbf40573691609d97d64 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sun, 21 Nov 2010 17:36:29 +0100 Subject: Adapt messages to Debian When ProgressBar is unavailable, also suggest to install python-progressbar. Origin: vendor Forwarded: not-needed Last-Update: 2010-11-21 --- fr.po | 8 ++++---- gcp | 2 +- gcp.po | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fr.po b/fr.po index 73312fd..06e21f9 100644 --- a/fr.po +++ b/fr.po @@ -26,11 +26,11 @@ msgstr "Merci de vérifier les dépendances" #: gcp:50 msgid "" -"ProgressBar not available, please download it at http://pypi.python.org/pypi/" -"progressbar" +"ProgressBar not available, please install python-progressbar or download it " +"at http://pypi.python.org/pypi/progressbar" msgstr "" -"«ProgressBar» n'est pas disponible, merci de le télécharger à http://pypi." -"python.org/pypi/progressbar" +"«ProgressBar» n'est pas disponible, merci d'installer python-progressbar ou " +"de le télécharger à http://pypi.python.org/pypi/progressbar" #: gcp:51 msgid "" diff --git a/gcp b/gcp index 6b2f6a9..3a6016a 100755 --- a/gcp +++ b/gcp @@ -48,7 +48,7 @@ try: from progressbar import ProgressBar, Percentage, Bar, ETA, FileTransferSpeed pbar_available=True except ImportError, e: - info (_('ProgressBar not available, please download it at http://pypi.python.org/pypi/progressbar')) + info (_('ProgressBar not available, please install python-progressbar or download it at http://pypi.python.org/pypi/progressbar')) info (_('Progress bar deactivated\n--\n')) pbar_available=False diff --git a/gcp.po b/gcp.po index b27c5fb..d1cef51 100644 --- a/gcp.po +++ b/gcp.po @@ -26,8 +26,8 @@ msgstr "" #: gcp:50 msgid "" -"ProgressBar not available, please download it at http://pypi.python.org/pypi/" -"progressbar" +"ProgressBar not available, please install python-progressbar or download it " +"at http://pypi.python.org/pypi/progressbar" msgstr "" #: gcp:51 debian/patches/0004-Fix-typos-in-README-and-gcp.1.patch0000644000000000000000000001244511762344336017145 0ustar From 6ee56122fc66c9a98938137f123ba52bff5a6fe7 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 31 May 2012 22:06:31 +0200 Subject: Fix typos in README and gcp.1 s/vfat/VFAT/ s/journalizaion/journalization/ s/wront/wrong/ s/improvment/improvement/ s/xmpp/XMPP/ s/unicode/Unicode/ s/Kde/KDE/ s/Gnome/GNOME/ s/nfs/NFS/ s/mainteners/maintainers/ s/IMdB/IMDb/ Origin: vendor Forwarded: goffi@goffi.org Last-Update: 2012-05-31 --- README | 22 +++++++++++----------- gcp.1 | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README b/README index aa6abc2..9d7a06e 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ gcp v0.1.3 (c) Jérôme Poisson aka Goffi 2010, 2011 -gcp (Goffi's cp) is a files copier. +gcp (Goffi's cp) is a file copier. ** LICENSE ** @@ -26,7 +26,7 @@ gcp is a file copier, loosely inspired from cp, but with high level functionalit - progression indicator - gcp continue copying even when there is an issue: he just skip the file with problem, and go on - journalization: gcp write what he is doing, this allow to know which files were effectively copied - - fixing names to be compatible with the target filesystem (e.g. removing incompatible chars like "?" or "*" on vfat) + - fixing names to be compatible with the target filesystem (e.g. removing incompatible chars like "?" or "*" on VFAT) - if you launch a copy when an other is already running, the files are added to the first queue, this avoid your hard drive to move its read/write head all the time - files saving: you can keep track of files you have copied, and re-copy them later (useful when, for example, you always copy some free music to all your friends). - gcp will be approximately option-compatible with cp (approximately because the behaviour is not exactly the same, see below) @@ -39,7 +39,7 @@ Pretty much like cp (see gcp --help). Please note that the behaviour is not exactly the same as cp, even if gcp want to be option-compatible. Mainly, the destination filenames can be changed (by default, can be deactivated). gcp doesn't implement yet all the options from cp, but it's planed. -** journalizaion ** +** journalization ** The journal is planed to be used by gcp itself, buts remains human-readable. It is located in ~/.gcp/journal 3 states are used: @@ -47,23 +47,23 @@ The journal is planed to be used by gcp itself, buts remains human-readable. It - PARTIAL means the file is copied, but something went wrong (e.g. changing the permissions of the file) - FAILED: the file is *not* copied -after the state, a list of things which went wront are show, separated by ", " +after the state, a list of things which went wrong are show, separated by ", " ** What's next ? ** -Several improvment are already planed +Several improvement are already planed - copy queue management (moving copy order) - advanced console interface -- notification (xmpp and maybe mail) when a long copy is finished +- notification (XMPP and maybe mail) when a long copy is finished - retry for files which were not correctly copied -- badly encoded unicode filenames fix +- badly encoded Unicode filenames fix - file copy integrity check ... and other are with a "maybe" - graphic interface -- desktop (Kde, Gnome, XFCE, ...) integration +- desktop (KDE, GNOME, XFCE, ...) integration - distant copy (ftp) -- basic server mode, for copying files on network without the need of nfs or other heavy stuff +- basic server mode, for copying files on network without the need of NFS or other heavy stuff ** Credits ** @@ -83,7 +83,7 @@ A big big thank to the authors/contributors of... If I forgot any credit, please contact me (mail below) to fix it. -Big thanks to contributors and package mainteners +Big thanks to contributors and package maintainers ** Contributions ** 2011: Thomas Preud'homme : manpage, stat resolution fix @@ -96,7 +96,7 @@ You can contact me at goffi@goffi.org . You'll find the latest version on my ftp: ftp://ftp.goffi.org/gcp, or check the wiki ( http://wiki.goffi.org/wiki/Gcp ) Please report any bug on http://bugs.goffi.org You can also have a look to my other main projects (and maybe to the smaller ones too ;) ): -- lm (list movie): a tool to list movies using IMdB data, loosely inspired from ls +- lm (list movie): a tool to list movies using IMDb data, loosely inspired from ls - SàT: my main project, a jabber/XMPP client, which is a brick to many others things I have in mind Don't hesitate to give feedback :) diff --git a/gcp.1 b/gcp.1 index 63dfb8f..f7daf0f 100644 --- a/gcp.1 +++ b/gcp.1 @@ -39,7 +39,7 @@ command. \- transfer progression indication \- continuous copying when there is an issue: it skips the problematic file and goes on \- copy status logging: which files were effectively copied - \- name mangling to handle target filesystem limitations (e.g. removing incompatible chars like "?" or "*" on vfat) + \- name mangling to handle target filesystem limitations (e.g. removing incompatible chars like "?" or "*" on VFAT) \- forced copy serialization: new files to copy are added to a global queue to avoid hard drive head seeks \- transfer list management: gcp can save a list of files to copy and reuse it later \- approximate option compatibility with cp (approximate because the behaviour is not exactly the same, see below) debian/patches/0002-Fix-an-other-typo-in-gcp.1-manpage.patch0000644000000000000000000000172111762344336020401 0ustar From 6602d23b15b35c2155e9067e3806d85d01abe40e Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 21 Jun 2011 12:21:50 +0200 Subject: Fix "an other" typo in gcp.1 manpage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Origin: vendor Forwarded: yes Last-Update: 2011-06-21 --- gcp.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcp.1 b/gcp.1 index 58bb727..63dfb8f 100644 --- a/gcp.1 +++ b/gcp.1 @@ -105,7 +105,7 @@ List the names of source file lists, including their content. .SH EXIT STATUS The exit status can be: .IP \[bu] 2 -\fB0\fP if files have been copied correctly or if an other instance of gcp is already running and will do the copy. +\fB0\fP if files have been copied correctly or if another instance of gcp is already running and will do the copy. .IP \[bu] \fB1\fP if at least one file has not been copied, or if something went wrong. .IP \[bu] debian/patches/series0000644000000000000000000000027011762344336012042 0ustar 0001-Adapt-messages-to-Debian.patch 0002-Fix-an-other-typo-in-gcp.1-manpage.patch 0003-Use-raise-instead-of-raise-e-for-better-traceback.patch 0004-Fix-typos-in-README-and-gcp.1.patch debian/patches/0003-Use-raise-instead-of-raise-e-for-better-traceback.patch0000644000000000000000000000151111762344336023420 0ustar From 2ad7c9f83cc220d42b935da2d32707083163391e Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 31 May 2012 21:52:32 +0200 Subject: Use raise instead of raise e for better traceback Use "raise" instead of "raise e" in constructor (__init__) of GCP as it gives better traceback. Origin: vendor Forwarded: goffi@goffi.org Last-Updated: 2012-05-31 --- gcp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcp b/gcp index 3a6016a..6264152 100755 --- a/gcp +++ b/gcp @@ -202,7 +202,7 @@ class GCP(): self.buffer_size = const_BUFF_SIZE self.__launched = False #True when journal is initialised and copy is started else: - raise e + raise def launchDbusMainInstance(self): debug (_("Init DBus..."))