summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSebastian Heinlein <sebi@sebi-laptop>2006-11-25 09:55:04 +0100
committerSebastian Heinlein <sebi@sebi-laptop>2006-11-25 09:55:04 +0100
commitd21a4328a369e521c49a7ba21834b3e5e950ca97 (patch)
tree08f192dfcf3480101cc7e7f923d0fb05876dbde8 /utils
parentee8317343ad726571d5f6ad863ee0b27d58251e5 (diff)
downloadpython-apt-d21a4328a369e521c49a7ba21834b3e5e950ca97.tar.gz
* Fork a pyton-aptsources source tree from update-manager
Diffstat (limited to 'utils')
-rw-r--r--utils/apt/status0
-rw-r--r--utils/demoted.cfg145
-rwxr-xr-xutils/demotions.py86
3 files changed, 0 insertions, 231 deletions
diff --git a/utils/apt/status b/utils/apt/status
deleted file mode 100644
index e69de29b..00000000
--- a/utils/apt/status
+++ /dev/null
diff --git a/utils/demoted.cfg b/utils/demoted.cfg
deleted file mode 100644
index 57a2dac7..00000000
--- a/utils/demoted.cfg
+++ /dev/null
@@ -1,145 +0,0 @@
-# demoted packages
-blender
-bluez-hcidump
-bluez-pcmcia-support
-console-common
-console-data
-courier-authdaemon
-courier-base
-courier-doc
-courier-imap
-courier-imap-ssl
-courier-pop
-courier-pop-ssl
-courier-ssl
-cupsys-driver-gimpprint
-dh-consoledata
-doc-debian
-expat
-foomatic-db-gimp-print
-foomatic-db-gutenprint
-ftgl-dev
-g++-3.4
-g++-4.0
-gok
-gok-doc
-gtk2-engines-clearlooks
-gtk2-engines-crux
-gtk2-engines-highcontrast
-gtk2-engines-industrial
-gtk2-engines-lighthouseblue
-gtk2-engines-mist
-gtk2-engines-pixbuf
-gtk2-engines-redmond95
-gtk2-engines-smooth
-gtk2-engines-thinice
-heimdal-dev
-ia32-libs-gtk
-ia32-libs-kde
-ia32-libs-openoffice.org
-idle-python2.4
-ijsgimpprint
-ijsgutenprint
-installation-guide-hppa
-irssi-text
-kde-style-lipstik
-klaptopdaemon
-kmplayer-doc
-lam4-dev
-lam4c2
-libaltlinuxhyph-dev
-libasn1-6-heimdal
-libcompfaceg1
-libcompfaceg1-dev
-libdvdnav-dev
-libdvdnav4
-libdvdread3
-libgd-gd2-noxpm-perl
-libgnujaxp-java
-libgnujaxp-java-doc
-libgnujaxp-jni
-libgnutls12
-libgssapi4-heimdal
-libhdb7-heimdal
-libkadm5clnt4-heimdal
-libkadm5srv7-heimdal
-libkafs0-heimdal
-libkrb5-17-heimdal
-libmpich1.0-dev
-libmpich1.0c2
-libmythes0
-libnetcdf++3
-libnetcdf3
-libpgtcl-dev
-libpgtcl1.5
-libreiserfs0.3-0
-libreiserfs0.3-dbg
-libreiserfs0.3-dev
-libroken16-heimdal
-libstdc++6-4.0-dbg
-libstdc++6-4.0-dev
-libstdc++6-4.0-doc
-libstdc++6-dbg
-libstdc++6-dev
-libsyck0-dev
-libtasn1-2
-libtasn1-2-dev
-libtest-builder-tester-perl
-libunicode-string-perl
-libxaw6
-libxaw6-dbg
-libxine-main1
-memtester
-menu-xdg
-mgetty
-mgetty-fax
-mklibs-copy
-mono-classlib-2.0
-mozilla-firefox
-mozilla-firefox-locale-eu
-mozilla-firefox-locale-lt
-mozilla-firefox-locale-mn
-mozilla-firefox-locale-nb-no
-mozilla-thunderbird-locale-ca
-mozilla-thunderbird-locale-de
-mozilla-thunderbird-locale-fr
-mozilla-thunderbird-locale-it
-mozilla-thunderbird-locale-nl
-mozilla-thunderbird-locale-pl
-mozilla-thunderbird-locale-uk
-mpi-doc
-mpich-bin
-nagios-common
-nagios-mysql
-nagios-pgsql
-nagios-plugins
-nagios-plugins-basic
-nagios-plugins-standard
-nagios-text
-netcdfg-dev
-nvidia-glx-legacy
-nvidia-glx-legacy-dev
-pcmcia-cs
-procinfo
-publib-dev
-python-gadfly
-python-htmltmpl
-python-kjbuckets
-python-netcdf
-python-numeric-ext
-python-parted
-python-pgsql
-python-scientific-doc
-python-soappy
-python-stats
-python-syck
-readahead-list
-sdf-doc
-springgraph
-sysutils
-tcl8.0
-tcl8.0-dev
-tcsh
-tk8.0
-x-window-system-core
-xfmedia
diff --git a/utils/demotions.py b/utils/demotions.py
deleted file mode 100755
index 45a1397b..00000000
--- a/utils/demotions.py
+++ /dev/null
@@ -1,86 +0,0 @@
-#! /usr/bin/env python
-#
-# FIXME: strip "TryExec" from the extracted menu files (and noDisplay)
-#
-# TODO:
-# - emacs21 ships it's icon in emacs-data, deal with this
-# - some stuff needs to be blacklisted (e.g. gnome-about)
-# - lots of packages have there desktop file in "-data", "-comon" (e.g. anjuta)
-# - lots of packages have multiple desktop files for the same application
-# abiword, abiword-gnome, abiword-gtk
-
-import os
-import tarfile
-import sys
-import apt
-import apt_pkg
-import apt_inst
-#import xdg.Menu
-import os.path
-import re
-import tempfile
-import subprocess
-import string
-import shutil
-import urllib
-import logging
-
-
-# pkgs in main for the given dist
-class Dist(object):
- def __init__(self,name):
- self.name = name
- self.pkgs_in_comp = {}
-
-if __name__ == "__main__":
-
- # init
- apt_pkg.Config.Set("Dir::state","./apt/")
- apt_pkg.Config.Set("Dir::Etc","./apt")
- apt_pkg.Config.Set("Dir::State::status","./apt/status")
- try:
- os.makedirs("apt/lists/partial")
- except OSError:
- pass
-
- old = Dist("dapper")
- new = Dist("edgy")
-
- # go over the dists to find main pkgs
- for dist in [old, new]:
-
- for comp in ["main", "restricted", "universe", "multiverse"]:
- line = "deb http://archive.ubuntu.com/ubuntu %s %s\n" % (dist.name,comp)
- file("apt/sources.list","w").write(line)
- dist.pkgs_in_comp[comp] = set()
-
- # and the archs
- for arch in ["i386","amd64", "powerpc"]:
- apt_pkg.Config.Set("APT::Architecture",arch)
- cache = apt.Cache(apt.progress.OpTextProgress())
- prog = apt.progress.TextFetchProgress()
- cache.update(prog)
- cache.open(apt.progress.OpTextProgress())
- map(lambda pkg: dist.pkgs_in_comp[comp].add(pkg.name), cache)
-
- # check what is no longer in main
- no_longer_main = old.pkgs_in_comp["main"] - new.pkgs_in_comp["main"]
- no_longer_main |= old.pkgs_in_comp["restricted"] - new.pkgs_in_comp["restricted"]
-
- # check what moved to universe and what was removed (or renamed)
- in_universe = lambda pkg: pkg in new.pkgs_in_comp["universe"] or pkg in new.pkgs_in_comp["multiverse"]
-
- # debug
- #not_in_universe = lambda pkg: not in_universe(pkg)
- #print filter(not_in_universe, no_longer_main)
-
- # this stuff was demoted and is no in universe
- demoted = filter(in_universe, no_longer_main)
- demoted.sort()
-
- outfile = "demoted.cfg"
- print "writing the demotion info to '%s'" % outfile
- # write it out
- out = open(outfile,"w")
- out.write("# demoted packages\n")
- out.write("\n".join(demoted))