[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: doc-base is hugely unloved; bug mass-filing needed?



Jeremy> 	Have it generate the list of packages that don't
Jeremy> register with doc-base... If any of them are mine I'll get them
Jeremy> added though I don't know if the updates would make it into
Jeremy> squeeze at this point but at least into squeeze+1.

So I did.  I took a slightly different approach this time and the count
is actually much lower (136); maybe that's because packages name the
doc-base control files with something else than the package name.
Here's the script:

#! /bin/bash

have_doc()
{
    local pkglist=$1
    while read d ; do
        case "$d" in
            *.html)
                echo 1
                return
                ;;
            *.xhtml)
                echo 1
                return
                ;;
            *.xhtml.gz)
                echo 1
                return
                ;;
            *.pdf)
                echo 1
                return
                ;;
            *.pdf.gz)
                echo 1
                return
                ;;
            *)
                ;;
        esac
    done < $pkglist
    echo 0
}

registered()
{
    local pkglist=$1
    while read d ; do
        case "$d" in
            /usr/share/doc-base/*)
                echo 1
                return
                ;;
            *)
                ;;
        esac
    done < $pkglist
    echo 0
}

# exclude locally built packages
is_local()
{
    local pkg="$1"
    if ls ~/net/foolinux/debian/${pkg}_* > /dev/null 2>&1 ; then
        echo 1
    else
        echo 0
    fi
}

cd /var/lib/dpkg/info

ls | while read f ; do
    case "$f" in
        *.list)
            pkg=${f%.list}
            if [ `have_doc "$f"` -ne 0 ] && \
                [ `registered "$f"` -eq 0 ] && \
                [ `is_local "$pkg"` -eq 0 ] ; then
                echo "$pkg"
            fi
            ;;
        *)
            ;;
    esac
done


and here's the result:

adduser
apache2.2-common
aptitude-doc-en
aspell-doc
axiom
axiom-doc
axiom-hypertex-data
bc
bittorrent
csound-doc
dealer
docbook-dsssl
ecasound
emacs23-common
eukleides
fldiff
gajim
gcc-4.4
gettext
gimp-plugin-registry
gimp-texturize
git-doc
gkrellm
gnupg2
gnuplot-mode
gnuplot-nox
graphicsmagick
groff
hugin-data
iceweasel
iproute-doc
ipython
jadetex
jsmath
latexila-data
libexiv2-doc
libfreetype6
libgd2-xpm
libgnomecanvas2-doc
libjs-dojo-core
libjs-dojo-dojox
libjs-jquery-ui-docs
libjs-mochikit
libjs-scriptaculous
libjs-xmlextras
libncurses5-dev
libosp5
libpolybori-dev
libraw1394-doc
libsnack2-doc
libvte-doc
libwebkit-1.0-common
libx11-dev
lmodern
lp-solve-doc
lsscsi
m17n-docs
mozilla-livehttpheaders
musixtex-slurps
openssh-client
openssl
pkg-config
pmx
purifyeps
python-chardet
python-feedparser
python-gtk2-doc
python-imaging-doc
python-jinja2
python-jinja2-doc
python-networkx
python-pexpect
python-plwm
python-pybabel
python-pygments
python-pyke-doc
python-pyparsing
python-simplejson
python-xlib
python2.6-examples
ragel
rox-filer
sdparm
sgml-data
sgt-puzzles
smartmontools
spass
sqlite3-doc
swig-examples
texinfo
texinfo-doc-nonfree
texlive-base
texlive-base-bin-doc
texlive-common
texlive-doc-base
texlive-doc-en
texlive-extra-utils
texlive-font-utils
texlive-fonts-extra
texlive-fonts-extra-doc
texlive-fonts-recommended-doc
texlive-games
texlive-generic-extra
texlive-generic-recommended
texlive-humanities-doc
texlive-lang-cyrillic
texlive-lang-czechslovak
texlive-lang-french
texlive-lang-german
texlive-lang-italian
texlive-lang-spanish
texlive-latex-base-doc
texlive-latex-extra
texlive-latex-extra-doc
texlive-latex-recommended
texlive-latex-recommended-doc
texlive-luatex
texlive-math-extra
texlive-metapost-doc
texlive-pictures-doc
texlive-pstricks
texlive-pstricks-doc
tinymce
tk-tile
unicode-data
units
w3m
wireshark-common
xarchiver
xindy-rules
xmldiff
xorg-docs
xul-ext-noscript
xulrunner-1.9.1
zenmap
zlib1g-dev



-- 
Ian Zimmerman <itz@buug.org>
gpg public key: 1024D/C6FF61AD 
fingerprint: 66DC D68F 5C1B 4D71 2EE5  BD03 8A00 786C C6FF 61AD
Ham is for reading, not for eating.


Reply to: