~jr/ubuntu/oneiric/apt/bzr-get-rename

« back to all changes in this revision

Viewing changes to debian/apt.cron.daily

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt, Michael Vogt, Robert Collins
  • Date: 2010-03-12 23:10:52 UTC
  • Revision ID: james.westby@ubuntu.com-20100312231052-fr404rjtgsuyfh6n
Tags: 0.7.25.3ubuntu2
[ Michael Vogt ]
* abicheck/
  - add new abitest tester using the ABI Compliance Checker from
    http://ispras.linuxfoundation.org/index.php/ABI_compliance_checker
* debian/apt.conf.autoremove:
  - add "oldlibs" to the APT::Never-MarkAuto-Sections as its used
    for transitional packages
* apt-pkg/deb/dpkgpm.cc:
  - fix backgrounding when dpkg runs (closes: #486222)
* cmdline/apt-mark:
  - show error on incorrect aguments (LP: #517917), thanks to
    Torsten Spindler
* cmdline/apt-get.cc:
  - if apt-get source foo=version or foo/distro can not be found,
    error out (LP: #502641)
* apt-pkg/indexfile.cc:
  - deal correctly with three letter langcodes (LP: #391409)
* debian/apt.cron.daily:
  - do not look into admin users gconf anymore for the http proxy
    the user now needs to use the "Apply system-wide" UI in the
    gnome-control-center to set it
* debian/apt.postinst:
  - add set_apt_proxy_from_gconf() and run that once on upgrade if
    there is no proxy configured already system-wide (LP: #432631)
    From that point on gnome-control-center will have to warn if
    the user makes changes to the proxy settings and does not apply
    them system wide

[ Robert Collins ]
* Change the package index Info methods to allow apt-cache policy to be
  useful when using several different archives on the same host.
  (Closes: #329814, LP: #22354)

Show diffs side-by-side

added added

removed removed

Lines of Context:
429
429
    exit 0
430
430
fi
431
431
 
432
 
# set the proxy based on the admin users gconf settings
433
 
admin_user=$(getent group admin|cut -d: -f4|cut -d, -f1)
434
 
if [ -n "$admin_user" ] && [ -x /usr/bin/sudo ] && [ -z "$http_proxy" ] && [ -x /usr/bin/gconftool ]; then
435
 
       use=$(sudo -u "$admin_user" gconftool --get /system/http_proxy/use_http_proxy 2>/dev/null)
436
 
       host=$(sudo -u "$admin_user" gconftool --get /system/http_proxy/host 2>/dev/null)
437
 
       port=$(sudo -u "$admin_user" gconftool --get /system/http_proxy/port 2>/dev/null)
438
 
       if [ "$use" = "true" ] && [ -n "$host" ] && [ -n "$port" ]; then
439
 
               export http_proxy="http://$host:$port/"
440
 
       fi
441
 
fi
442
 
 
443
 
 
444
432
# deal with BackupArchiveInterval
445
433
do_cache_backup $BackupArchiveInterval
446
434