Bug#864181: Fwd: Bug#864181: os-prober: dmraid detection not functional.

2017-06-08 Thread Philip Hands
Mike Mestnik writes: > In that case the proposed patch is wrong, dmraid is run every time the > file exists. Not only is the conditional in test wrong, but the file > is created when it should be being removed. You appear to be reading the || after the -f test as && To render those lines into

Bug#864181: Fwd: Bug#864181: os-prober: dmraid detection not functional.

2017-06-07 Thread Mike Mestnik
In that case the proposed patch is wrong, dmraid is run every time the file exists. Not only is the conditional in test wrong, but the file is created when it should be being removed.

Bug#864181: Fwd: Bug#864181: os-prober: dmraid detection not functional.

2017-06-07 Thread Philip Hands
Mike Mestnik writes: > This does look better, I love the use of operators over if statements. > I don't think using a temp file is necessary here. I also wish the > regex wouldn't ever match a device containing the name of another > device, in that it should match the surrounding bits. > > { dmr

Bug#864181: Fwd: Bug#864181: os-prober: dmraid detection not functional.

2017-06-07 Thread Mike Mestnik
This does look better, I love the use of operators over if statements. I don't think using a temp file is necessary here. I also wish the regex wouldn't ever match a device containing the name of another device, in that it should match the surrounding bits. { dmraid -r -c 2>/dev/null || true } |

Bug#864181: os-prober: dmraid detection not functional.

2017-06-07 Thread Philip Hands
Mike Mestnik writes: > Package: os-prober > Version: 1.75 > Severity: normal > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Here is the code as found in os-prober:17 > : >"$OS_PROBER_TMP/dmraid-map" > DMRAID=$(type dmraid >/dev/null 2>&1 || true) > if [ "$DMRAID" ]; then > dmraid

Bug#864181: os-prober: dmraid detection not functional.

2017-06-04 Thread Mike Mestnik
Package: os-prober Version: 1.75 Severity: normal -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here is the code as found in os-prober:17 : >"$OS_PROBER_TMP/dmraid-map" DMRAID=$(type dmraid >/dev/null 2>&1 || true) if [ "$DMRAID" ]; then dmraid -r -c >"$OS_PROBER_TMP/dmraid-map" fi The p