Your message dated Thu, 05 Feb 2009 00:32:02 +0000
with message-id <[email protected]>
and subject line Bug#511702: fixed in fdupes 1.50-PR2-2
has caused the Debian Bug report #511702,
regarding fdupes: Please, add support to exclude hidden files
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
511702: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511702
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: fdupes
Version: 1.50-PR2-1
Severity: wishlist
Hi,
I find useful to report duplicate files to users, but I rather stay out of
.mozilla, .evolution, .Trash and so on. For thar reason I created a patch that
adds a
-A (--nohidden) option that excludes hidden files.
Please consider adding the attached patch to support this functionality.
-- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages fdupes depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
fdupes recommends no packages.
fdupes suggests no packages.
-- debconf-show failed
#! /bin/sh /usr/share/dpatch/dpatch-run
## 21_nohidden_support.dpatch by <[email protected]>
##
## DP: Adds --nohidden support
@DPATCH@
diff -urNad fdupes-1.50-PR2~/fdupes.c fdupes-1.50-PR2/fdupes.c
--- fdupes-1.50-PR2~/fdupes.c 2009-01-13 14:13:33.000000000 -0200
+++ fdupes-1.50-PR2/fdupes.c 2009-01-13 14:14:14.000000000 -0200
@@ -31,6 +31,7 @@
#endif
#include <string.h>
#include <errno.h>
+#include <libgen.h>
#ifndef EXTERNAL_MD5
#include "md5/md5.h"
@@ -51,6 +52,7 @@
#define F_RECURSEAFTER 0x0200
#define F_NOPROMPT 0x0400
#define F_SUMMARIZEMATCHES 0x0800
+#define F_EXCLUDEHIDDEN 0x1000
char *program_name;
@@ -240,6 +242,7 @@
struct stat linfo;
static int progress = 0;
static char indicator[] = "-\\|/";
+ char *fullname, *name;
cd = opendir(dir);
@@ -285,6 +288,17 @@
strcat(newfile->d_name, "/");
strcat(newfile->d_name, dirinfo->d_name);
+ if (ISFLAG(flags, F_EXCLUDEHIDDEN)) {
+ fullname = strdup(newfile->d_name);
+ name = basename(fullname);
+ if (name[0] == '.' && strcmp(name, ".") && strcmp(name, "..") ) {
+ free(newfile->d_name);
+ free(newfile);
+ continue;
+ }
+ free(fullname);
+ }
+
if (filesize(newfile->d_name) == 0 && ISFLAG(flags, F_EXCLUDEEMPTY)) {
free(newfile->d_name);
free(newfile);
@@ -945,6 +959,7 @@
printf(" \tdisk area they are treated as non-duplicates; this\n");
printf(" \toption will change this behavior\n");
printf(" -n --noempty \texclude zero-length files from consideration\n");
+ printf(" -A --nohidden \texclude hidden files from consideration\n");
printf(" -f --omitfirst \tomit the first file in each set of matches\n");
printf(" -1 --sameline \tlist each set of matches on a single line\n");
printf(" -S --size \tshow size of duplicate files\n");
@@ -996,6 +1011,7 @@
{ "hardlinks", 0, 0, 'H' },
{ "relink", 0, 0, 'l' },
{ "noempty", 0, 0, 'n' },
+ { "nohidden", 0, 0, 'A' },
{ "delete", 0, 0, 'd' },
{ "version", 0, 0, 'v' },
{ "help", 0, 0, 'h' },
@@ -1013,7 +1029,7 @@
oldargv = cloneargs(argc, argv);
- while ((opt = GETOPT(argc, argv, "frRq1Ss::HlndvhNm"
+ while ((opt = GETOPT(argc, argv, "frRq1Ss::HlnAdvhNm"
#ifndef OMIT_GETOPT_LONG
, long_options, NULL
#endif
@@ -1046,6 +1062,9 @@
case 'n':
SETFLAG(flags, F_EXCLUDEEMPTY);
break;
+ case 'A':
+ SETFLAG(flags, F_EXCLUDEHIDDEN);
+ break;
case 'd':
SETFLAG(flags, F_DELETEFILES);
break;
--- End Message ---
--- Begin Message ---
Source: fdupes
Source-Version: 1.50-PR2-2
We believe that the bug you reported is fixed in the latest version of
fdupes, which is due to be installed in the Debian FTP archive:
fdupes_1.50-PR2-2.diff.gz
to pool/main/f/fdupes/fdupes_1.50-PR2-2.diff.gz
fdupes_1.50-PR2-2.dsc
to pool/main/f/fdupes/fdupes_1.50-PR2-2.dsc
fdupes_1.50-PR2-2_amd64.deb
to pool/main/f/fdupes/fdupes_1.50-PR2-2_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Sandro Tosi <[email protected]> (supplier of updated fdupes package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 05 Feb 2009 01:22:45 +0100
Source: fdupes
Binary: fdupes
Architecture: source amd64
Version: 1.50-PR2-2
Distribution: unstable
Urgency: low
Maintainer: Sandro Tosi <[email protected]>
Changed-By: Sandro Tosi <[email protected]>
Description:
fdupes - identifies duplicate files within given directories
Closes: 481809 511702
Changes:
fdupes (1.50-PR2-2) unstable; urgency=low
.
* debian/control
- bump Standards-Version to 3.8.0
+ added debian/README.source
- updated my email address
* debian/patches/30_bts481809_manpage_summarize.dpatch
- added --summarize to manpage; thanks to Sam Morris for the report;
Closes: #481809
* debian/patches/40_bts511702_nohidden_support.dpatch
- added support to exclude hidden files; thanks to Maximiliano Curia for
the
report and the patch (edited to patch manpage too); Closes: #511702
* debian/copyright
- added debian packaging legal stuff
Checksums-Sha1:
b1a63794fc9ce1befbc3ec886bce991b77cc8e00 1022 fdupes_1.50-PR2-2.dsc
f4e7e62488d6d5d6316e584abb1168d8ce1444bf 6852 fdupes_1.50-PR2-2.diff.gz
81a48b01b90bfa580c4a96452d669cd2bfc58787 19220 fdupes_1.50-PR2-2_amd64.deb
Checksums-Sha256:
c5a604d6088801ac842c9a0b39742fd15156ad5efbd23d882843dbbe9b2e27e8 1022
fdupes_1.50-PR2-2.dsc
ead9b6c241ba1e490e6b9df5301001fe7580245743cae7fc743592b8acc83863 6852
fdupes_1.50-PR2-2.diff.gz
26a9dc2af8161fbef0266774c4ae7d250400367c43b7b68d9f28c5044dc9bf86 19220
fdupes_1.50-PR2-2_amd64.deb
Files:
2c5298072f928b3cfdead104a6f7bc27 1022 utils optional fdupes_1.50-PR2-2.dsc
ccc02243ee92c78cf50fd3121ed548fe 6852 utils optional fdupes_1.50-PR2-2.diff.gz
4cc544f052c5379e8ef4f68d8f9fda7c 19220 utils optional
fdupes_1.50-PR2-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkmKMikACgkQAukwV0RN2VBa2wCeKT9+vexR/UzYmv7OdMD/mb6f
LXcAoKAO/PJ1UTEc4o3K/xIdsYdrEoSE
=AV7j
-----END PGP SIGNATURE-----
--- End Message ---