~ubuntu-branches/ubuntu/wily/crosshurd/wily

« back to all changes in this revision

Viewing changes to functions

  • Committer: Package Import Robot
  • Author(s): Samuel Thibault, Guillem Jover
  • Date: 2014-08-19 19:40:28 UTC
  • Revision ID: package-import@ubuntu.com-20140819194028-my2t0xkpd6rrxt08
Tags: 1.7.47
[ Guillem Jover ]
* Switch from libparted0debian1 to libparted2 (Closes: Bug#757014).
* Use dpkg-deb instead of manually extracting packages and information
  (Closes: Bug#757013).

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    p="$(($p + 1))"
44
44
    progress "$p" "$#" "Extracting packages"
45
45
    info "Extracting $pkg..."
46
 
    if ar -t ./$pkg | grep -q data.tar.gz
47
 
    then
48
 
        ar -p ./$pkg data.tar.gz | zcat | tar -xf -
49
 
    else
50
 
        ar -p ./$pkg data.tar.xz | xzcat | tar -xf -
51
 
    fi
 
46
    dpkg-deb --extract ./$pkg .
52
47
  done
53
48
  sync
54
49
); }
74
69
x_feign_install () {
75
70
        local pkg="$1"
76
71
        local deb="$(debfor $pkg)"
77
 
        local ver="$(
78
 
            ar -p "$TARGET/$deb" control.tar.gz | zcat |
79
 
                tar -O -xf - control ./control 2>/dev/null |
80
 
                sed -ne 's/^Version: *//Ip' | head -n 1
81
 
        )"
 
72
        local ver="$(dpkg-deb --field "$TARGET/$deb" Version)"
82
73
 
83
74
        mkdir -p "$TARGET/var/lib/dpkg/info"
84
75