That's not actually the commit that introduced the testing of the tree names. That was however part of the bash rewrite. You can see in that commit that is_module_built had a previous regex test.
There were previously areas of the code that made assumptions on the directory structure and used grep and string comparison to determine the correct action to do. After the bash rewrite, this might be possible to relax the tests a bit, but i'll need to explore some more. As you can see the regex errs on the side of caution heavily. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/855635 Title: [regression] Dkms quits with error if directory contains "build", "kernel" etc To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/855635/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
