hybrid-detect only checks for amd64, not i386 (unreachable code)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-drivers-common (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
There seems to be a copy-paste-error in /share/
> char *arch = NULL;
> arch = get_output("dpkg --print-
> if (strcmp(arch, "amd64") == 0) {
> arch_path = "x86_64-linux-gnu";
> }
> else if (strcmp(arch, "amd64") == 0) {
> arch_path = "i386-linux-gnu";
> }
> else {
Both "if"s check for "amd64", but the second one should probably check for "i386". I didn't test it, but at the moment "arch_path = "i386-linux-gnu";" is unreachable.
Same in quantal-updates and raring-proposed branch of ubuntu-
Nice catch, danke! Fixed in git.