[trash-cli/f14/master] Update empty days patch

Ankur Sinha ankursinha at fedoraproject.org
Mon Feb 7 12:22:13 UTC 2011


commit 27495c1c6cdb7d61afcdaf5e2178be84592104cc
Author: Ankur Sinha <sanjay.ankur at gmail.com>
Date:   Mon Feb 7 18:00:02 2011 +0530

    Update empty days patch

 trash-cli-empty_days.patch |    7 +++++--
 trash-cli.spec             |    5 ++++-
 2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/trash-cli-empty_days.patch b/trash-cli-empty_days.patch
index 93a04ab..1d99366 100644
--- a/trash-cli-empty_days.patch
+++ b/trash-cli-empty_days.patch
@@ -1,8 +1,8 @@
 diff --git a/trashcli/cli/empty.py b/trashcli/cli/empty.py
-index 70a49f2..2d9d90f 100755
+index 70a49f2..b290e89 100755
 --- a/trashcli/cli/empty.py
 +++ b/trashcli/cli/empty.py
-@@ -55,9 +55,9 @@ def main(argv=None) :
+@@ -55,11 +55,12 @@ def main(argv=None) :
      if len(args) > 1 :
          parser.print_usage()
          parser.exit()
@@ -13,4 +13,7 @@ index 70a49f2..2d9d90f 100755
 +            days=int(args[0])
          except :
              parser.print_usage()
++            parser.exit()
  
+     for trashedfile in trashcan.trashed_files() :
+         delta=datetime.datetime.now()-trashedfile.deletion_date
diff --git a/trash-cli.spec b/trash-cli.spec
index fedc005..ce87718 100644
--- a/trash-cli.spec
+++ b/trash-cli.spec
@@ -4,7 +4,7 @@
 Summary:        Command line interface to the freedesktop.org trashcan
 Name:           trash-cli
 Version:        0.11.3
-Release:        0.2.r315%{?dist}
+Release:        0.3.r315%{?dist}
 License:        GPLv2+
 Group:          System Environment/Base
 URL  :          http://trash-cli.googlecode.com/
@@ -60,6 +60,9 @@ rm -rf %{buildroot}
 %{_mandir}/man1/trash-*
 
 %changelog
+* Mon Feb 07 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.11.3-0.3.r315
+- Updated patch
+
 * Sun Feb 06 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.11.3-0.2.r315
 - Add requires to python-setuptools
 - Patch to correct trash-empty


More information about the scm-commits mailing list