public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/trash-cli] pr6: * Sun Feb 06 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.11.3-0.2.r315
@ 2026-09-20 13:17 Ankur Sinha
  0 siblings, 0 replies; only message in thread
From: Ankur Sinha @ 2026-09-20 13:17 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/trash-cli
            Branch : pr6
            Commit : 447702fea36e11a2dda81a0557bf72318891b178
            Author : Ankur Sinha <sanjay.ankur@gmail.com>
            Date   : 2011-02-06T19:00:26+05:30
            Stats  : +24/-2 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/trash-cli/c/447702fea36e11a2dda81a0557bf72318891b178?branch=pr6

            Log:
            * 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

---
diff --git a/trash-cli-empty_days.patch b/trash-cli-empty_days.patch
new file mode 100644
index 0000000..93a04ab
--- /dev/null
+++ b/trash-cli-empty_days.patch
@@ -0,0 +1,16 @@
+diff --git a/trashcli/cli/empty.py b/trashcli/cli/empty.py
+index 70a49f2..2d9d90f 100755
+--- a/trashcli/cli/empty.py
++++ b/trashcli/cli/empty.py
+@@ -55,9 +55,9 @@ def main(argv=None) :
+     if len(args) > 1 :
+         parser.print_usage()
+         parser.exit()
+-    elif len(args) > 1 :
++    elif len(args) > 0 :
+         try :
+-            days=int(args[1])
++            days=int(args[0])
+         except :
+             parser.print_usage()
+ 

diff --git a/trash-cli.spec b/trash-cli.spec
index 1a51c91..fedc005 100644
--- a/trash-cli.spec
+++ b/trash-cli.spec
@@ -4,14 +4,15 @@
 Summary:        Command line interface to the freedesktop.org trashcan
 Name:           trash-cli
 Version:        0.11.3
-Release:        0.1.r315%{?dist}
+Release:        0.2.r315%{?dist}
 License:        GPLv2+
 Group:          System Environment/Base
 URL  :          http://trash-cli.googlecode.com/
 Source0:        http://trash-cli.googlecode.com/files/trash-cli-%{version}-r315.tar.gz
+Patch0:         trash-cli-empty_days.patch
 BuildArch:      noarch
 BuildRequires:  python-setuptools-devel dos2unix
-Requires:       python-unipath
+Requires:       python-unipath python-setuptools
 
 %description
 trash-cli provides a command line trash usable with GNOME, KDE, Xfce or any 
@@ -20,6 +21,7 @@ compatible with rm and you can use trash-put as an alias to rm.
 
 %prep
 %setup -q -n %{name}-%{version}-r315
+%patch0 -p1
 
 for f in filesystem.py cli/restore.py cli/util.py ; do
     dos2unix -k trashcli/$f
@@ -58,6 +60,10 @@ rm -rf %{buildroot}
 %{_mandir}/man1/trash-*
 
 %changelog
+* 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
+
 * Tue Jan 04 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.11.3-0.1.r315 
 - update to latest up stream release
 - http://pypi.python.org/pypi/trash-cli/

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-20 13:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-20 13:17 [rpms/trash-cli] pr6: * Sun Feb 06 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.11.3-0.2.r315 Ankur Sinha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox