~ubuntu-branches/ubuntu/quantal/friendly-recovery/quantal

« back to all changes in this revision

Viewing changes to usr/share/recovery-mode/options/dpkg

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-06-02 16:01:45 UTC
  • Revision ID: james.westby@ubuntu.com-20080602160145-p4i8sa3bxg5vmwe5
Tags: 0.2.4
* usr/share/recovery-mode/options/dpkg:
  - support python2.6 in dpkg recovery too (thanks to
    Jοhan Kiviniemi)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
# check and use dist-upgraders partial mode if we have it,
15
15
# it contains a lot of useful repair code
16
 
for p in /usr/lib/python2.5/site-packages/DistUpgrade/dist-upgrade.py \
17
 
         /usr/lib/python2.6/site-packages/DistUpgrade/dist-upgrade.py; do
18
 
    if [ -e $p ]; then
19
 
        python $p  --partial --frontend DistUpgradeViewText --datadir /usr/share/update-manager/
20
 
        break
21
 
    fi
 
16
for v in 2.5 2.6; do
 
17
  python="/usr/bin/python$v"
 
18
  script="/usr/lib/python$v/site-packages/DistUpgrade/dist-upgrade.py"
 
19
  if [ -x "$python" ] && [ -e "$script" ]; then
 
20
    "$python" "$script" --partial --frontend DistUpgradeViewText \
 
21
      --datadir /usr/share/update-manager/
 
22
    break
 
23
  fi
22
24
done
23
25
 
24
26
# now run the apt foo again (if u-m was ok that shouldn't be needed