config/companion_libs/mpc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jan 01 17:09:52 2010 +0100 (2010-01-01)
changeset 1673 ecb7fcc4edb0
parent 1535 073d351bdcd3
child 1695 a86fcf9e4fcd
permissions -rw-r--r--
scripts/functions: fix downloading with aria2

In case the remote file does not exist (and probably for some
other reasons as well), aria2 nonetheless creates an empty file
(or not empty for some other reasons).

The solution is to delete the file whenever aria2 fails.
yann@1384
     1
# MPC options
yann@1384
     2
yann@1384
     3
choice
yann@1384
     4
    bool
yann@1384
     5
    prompt "MPC version"
yann@1535
     6
# Don't remove next line
yann@1535
     7
# CT_INSERT_VERSION_BELOW
yann@1384
     8
yann@1534
     9
config MPC_V_0_7
yann@1534
    10
    bool
yann@1534
    11
    prompt "0.7"
yann@1534
    12
yann@1384
    13
config MPC_V_0_6
yann@1384
    14
    bool
yann@1615
    15
    prompt "0.6 (OBSOLETE)"
yann@1615
    16
    depends on OBSOLETE
yann@1384
    17
yann@1384
    18
endchoice
yann@1384
    19
yann@1384
    20
config MPC_VERSION
yann@1384
    21
    string
yann@1535
    22
# Don't remove next line
yann@1535
    23
# CT_INSERT_VERSION_STRING_BELOW
yann@1534
    24
    default "0.7" if MPC_V_0_7
yann@1384
    25
    default "0.6" if MPC_V_0_6