<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>192345</bug_id>
          
          <creation_ts>2007-09-12 20:08 0000</creation_ts>
          <short_desc>app-portage/gentoolkit-0.2.4_pre6: eclean does not accept --size-limit</short_desc>
          <delta_ts>2007-09-13 15:51:32 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Portage Development</product>
          <component>Tools</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>InSVN</keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>170220</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>tolich.arz@gmail.com</reporter>
          <assigned_to>tools-portage@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>tolich.arz@gmail.com</who>
            <bug_when>2007-09-12 20:08:42 0000</bug_when>
            <thetext># eclean distfiles -s 20M
 * Building file list for distfiles cleaning...
Aborted.
// Works

# eclean distfiles --size-limit=20M
 * Wrong option on command line.

Usage:
 eclean [global-option] ... &lt;action&gt; [action-option] ...

Available options for the distfiles action:
 -f, --fetch-restricted   - protect fetch-restricted files (when --destructive)
 -s, --size-limit=&lt;size&gt;  - don&apos;t delete distfiles bigger than &lt;size&gt;
   &lt;size&gt; is a size specification: &quot;10M&quot; is &quot;ten megabytes&quot;, &quot;200K&quot; is
   &quot;two hundreds kilobytes&quot;, etc.  Units are: G, M, K and B.

More detailed instruction can be found in `man eclean`
// Error

# eclean distfiles --size-limit 20M
 * Wrong size specification
Size specification should be an integer followed by a single letter unit.
Available units are: G, M, K and B.
For instance: &quot;10M&quot; is &quot;ten megabytes&quot;, &quot;200K&quot; is &quot;two hundreds kilobytes&quot;, etc.
// Does not work too...

Why?

Reproducible: Always

Steps to Reproduce:

Actual Results:  
eclean does not work

Expected Results:  
Clean outdated distfiles, excepting bigger than 20 Megabyes

# emerge --info
Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r6 i686)
=================================================================
System uname: 2.6.22-gentoo-r6 i686 Intel(R) Celeron(R) CPU 2.40GHz
Timestamp of tree: Wed, 12 Sep 2007 06:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc4-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium4 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-O2 -march=pentium4 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans&quot;
GENTOO_MIRRORS=&quot;http://mirror.yandex.ru/gentoo-distfiles/&quot;
LANG=&quot;ru_RU.utf8&quot;
LINGUAS=&quot;ru en&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/portage/local/layman/xeffects /usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X aac acl acpi aim alsa apache2 berkdb bitmap-fonts bzip2 cairo cdr cgi cli cracklib crypt dbus dri dvd dvdread eds emboss encode esd evo exif fam ffmpeg firefox fortran ftp gdbm gif gpm gstreamer gtk gtk2 hal iconv icq isdnlog jabber java javascript jpeg jpeg2k kde kdehiddenvisibility kerberos mad midi mikmod mime mmx mp3 mpeg mplayer mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl php png pppd python qt3support qt4 quicktime readline real reflection samba sdl session spell spl sse sse2 ssl svg tcpd threads tiff timidity truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x86 xcomposite xine xml xorg xpm xv xvid zip zlib&quot; ALSA_CARDS=&quot;intel8x0 seq-dummy&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;evdev keyboard mouse&quot; KERNEL=&quot;linux&quot; LINGUAS=&quot;ru en&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nvidia nv&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fuzzyray@gentoo.org</who>
            <bug_when>2007-09-12 23:03:01 0000</bug_when>
            <thetext>Created an attachment (id=130772)
eclean patch

Actually, you must be the first person to try to use the long options that take arguments, since none of them were working.  The attached patch will fix the issue and has been committed to subversion.

$ svn commit -m &quot;Fix long argument processing to work correctly. (Bug #192345)&quot;
Sending        ChangeLog
Sending        src/eclean/eclean
Transmitting file data ..
Committed revision 433.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fuzzyray@gentoo.org</who>
            <bug_when>2007-09-13 15:51:32 0000</bug_when>
            <thetext>Released in gentoolkit-0.2.4_pre7</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>130772</attachid>
            <date>2007-09-12 23:03 0000</date>
            <desc>eclean patch</desc>
            <filename>eclean.192345.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGVjbGVhbgo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBlY2xlYW4JKHJldmlzaW9uIDQzMikKKysrIGVj
bGVhbgkod29ya2luZyBjb3B5KQpAQCAtMzM0LDEyICszMzQsMTIgQEAKIAogCSMgaGVyZSBhcmUg
dGhlIGRpZmZlcmVudCBhbGxvd2VkIGNvbW1hbmQgbGluZSBvcHRpb25zIChnZXRvcHQgYXJncykK
IAlnZXRvcHRfb3B0aW9ucyA9IHsnc2hvcnQnOnt9LCAnbG9uZyc6e319Ci0JZ2V0b3B0X29wdGlv
bnNbJ3Nob3J0J11bJ2dsb2JhbCddID0gIkNk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