public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ankur Sinha <sanjay.ankur@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/trash-cli] pr6: * Sun Feb 06 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.11.3-0.2.r315
Date: Sun, 20 Sep 2026 13:17:55 GMT	[thread overview]
Message-ID: <178991027571.1.2478314739008498687.rpms-trash-cli-447702fea36e@fedoraproject.org> (raw)

            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/

                 reply	other threads:[~2026-09-20 13:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178991027571.1.2478314739008498687.rpms-trash-cli-447702fea36e@fedoraproject.org \
    --to=sanjay.ankur@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox