diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-25 12:44:39 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-25 12:44:39 +0100 |
| commit | 34a15f72ffcab2445332c72e3c0b030f0595b56f (patch) | |
| tree | b6612695d18d45f2d2469524494eda368b46309f /DistUpgrade | |
| parent | b6a69caac1c4a3db57bd8ab4d93f9b62395f41d5 (diff) | |
| download | python-apt-34a15f72ffcab2445332c72e3c0b030f0595b56f.tar.gz | |
* DistUpgrade/build-tarball.sh:
- create a tarbal for the dist-upgrade tool
- include the current set of translations
* DistUpgrade/DistUpgradeViewGtk.py:
- look for i18n files in "mo/"
* po/POTFILES.in:
- include the dist-upgrade stuff as well
* po/*.po: make update-po
Diffstat (limited to 'DistUpgrade')
| -rw-r--r-- | DistUpgrade/DistUpgradeCache.py | 1 | ||||
| -rw-r--r-- | DistUpgrade/DistUpgradeViewGtk.py | 4 | ||||
| -rwxr-xr-x | DistUpgrade/build-tarball.sh | 22 |
3 files changed, 26 insertions, 1 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py index 7629ed64..c7cb89f3 100644 --- a/DistUpgrade/DistUpgradeCache.py +++ b/DistUpgrade/DistUpgradeCache.py @@ -122,6 +122,7 @@ class MyCache(apt.Cache): if not trusted: untrusted.append(pkg.name) if len(untrusted) > 0: + untrusted.sort() logging.error("Unauthenticated packages found: '%s'" % \ " ".join(untrusted)) # FIXME: maybe ask a question here? instead of failing? diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py index 0cbc22be..ee05a5bf 100644 --- a/DistUpgrade/DistUpgradeViewGtk.py +++ b/DistUpgrade/DistUpgradeViewGtk.py @@ -35,7 +35,7 @@ import os from apt.progress import InstallProgress from DistUpgradeView import DistUpgradeView -from UpdateManager.Common.SimpleGladeApp import SimpleGladeApp +from UpdateManager.Common.SimpleGladeApp import SimpleGladeApp, bindtextdomain from gettext import gettext as _ @@ -182,6 +182,8 @@ class GtkDistUpgradeView(DistUpgradeView,SimpleGladeApp): def __init__(self): # FIXME: i18n must be somewhere relative do this dir + bindtextdomain("update-manager",os.path.join(os.getcwd(),"mo")) + SimpleGladeApp.__init__(self, "DistUpgrade.glade", None, domain="update-manager") self.window_main.set_keep_above(True) diff --git a/DistUpgrade/build-tarball.sh b/DistUpgrade/build-tarball.sh new file mode 100755 index 00000000..57185c34 --- /dev/null +++ b/DistUpgrade/build-tarball.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +DIST=dapper + +# cleanup +rm -f *~ *.bak *.pyc + +# update po +(cd ../po; make update-po) + +# copy the mo files +cp -r ../po/mo . + +# make symlink +if [ ! -h $DIST ]; then + ln -s dist-upgrade.py $DIST +fi + +# create the tarbal +tar -c -z -v --exclude=$DIST.tar.gz --exclude=$0 -f $DIST.tar.gz . + + |
