zyonet / apt-cyg

Automatically exported from code.google.com/p/apt-cyg
MIT License
0 stars 0 forks source link

"xz" extension problem #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Files with "xz" extensions seem not to be installed with apt-cyg

What steps will reproduce the problem?
1. fresh install cygwin with default plus wget
2. try installing LibXpm4
3. get error "bunzip2: (stdin) is not a bzip2 file."

What is the expected output? What do you see instead?
packages should be installed without this error

What version of the product are you using? On what operating system?
v0.58

Please provide any additional information below.

Original issue reported on code.google.com by yilmaz.d...@gmail.com on 10 Jul 2014 at 12:53

GoogleCodeExporter commented 8 years ago
at least, but not complete, the following change solves the problem.

    if [[ $file == *.bz2 ]]
    then
    cat $file | bunzip2 | tar > "/etc/setup/$pkg.lst" xvf - -C /
    elif [[ $file == *.xz ]]
    then
    cat $file | unxz | tar > "/etc/setup/$pkg.lst" xvf - -C /
    fi

Original comment by yilmaz.d...@gmail.com on 14 Jul 2014 at 12:36