Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108354 - `emaint -c' and `emaint --check' respond differently
Summary: `emaint -c' and `emaint --check' respond differently
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 108082
  Show dependency tree
 
Reported: 2005-10-06 23:54 UTC by Jeroen Roovers (RETIRED)
Modified: 2005-10-09 22:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Rework to optparse's behaviour (emaint-options.patch,985 bytes, patch)
2005-10-07 06:08 UTC, Jason Stubbs (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2005-10-06 23:54:19 UTC
emaint seems to be inconsistent:

...
henke ~ # emaint -c world
Attempting to fix world
henke ~ # emaint --check world
Checking world for problems
...

Reproducible: Always
Steps to Reproduce:





Fri Oct  7 08:52:49 CEST 2005
Gentoo Base System version 1.6.13
Portage 2.0.53_rc4 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.12-
gentoo-r10-JeR i586)
=================================================================
System uname: 2.6.12-gentoo-r10-JeR i586 AMD-K6(tm) 3D processor
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-Os -march=i586 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/
fax /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/
config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ 
/usr/share/texmf/xdvi/ /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=i586 -pipe"
DISTDIR="/keeps/gentoo/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks notitles prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/
pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo ftp://mirror.
nutsmaas.nl/gentoo/"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/keeps/gentoo/packages-i586"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/keeps/gentoo/portage"
PORTDIR_OVERLAY="/keeps/gentoo/local"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow aac alsa apache2 apm avi bash-completion berkdb bitmap-fonts 
chroot crypt cups curl eds elf emboss encode fax ffmpeg flash foomaticdb fortran 
gd gdbm gif gimpprint gpm gstreamer imagemagick ipv6 jpeg lcms ldap libg++ 
libwww lzo mad matroska mikmod mmx mng mp3 mpeg multitarget ncurses network nls 
nptl nptlonly offensive ogg oggvorbis oss pam pdflib perl physfs pic png ppds 
python quicktime readline samba scanner screenshot sftplogging slang smux snmp 
spell ssl svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts 
unicode usb userlocales vorbis winbind wmf xml xml2 xvid zlib userland_GNU 
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-10-07 00:17:57 UTC
So what?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2005-10-07 00:24:01 UTC
(In reply to comment #1)
> So what?

henke ~ # emaint --help
usage: emaint [options] all | world

options:
  -h, --help   show this help message and exit
  -c, --check  check for problems                    <<<<<
  -f, --fix    attempt to fix problems
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-10-07 06:08:09 UTC
Created attachment 70075 [details, diff]
Rework to optparse's behaviour

[quote]
opt_str 
is the option string seen on the command-line that's triggering the callback.
(If an abbreviated long option was used, opt_str will be the full, canonical
option string--e.g. if the user puts "-foo" on the command-line as an
abbreviation for "-foobar", then opt_str will be "-foobar".)
[/quote]

First time I've ever encountered incorrect documentation on Linux. :(
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-10-09 22:50:13 UTC
Fixed in 2.0.53_rc5 
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-10-09 22:50:58 UTC
.