Bug#810367: [PATCH] depmod: Don't insert comment in modules.devname if otherwise empty

2016-01-10 Thread Josh Triplett
This allows tools to detect the file as empty, such as via systemd's ConditionFileNotEmpty. --- The string constant extends past 80 columns, per CODING-STYLE. The motivation for this patch came from Debian bug 810367. This change would allow kmod-static-nodes.service to use ConditionFileNotEmpty

Bug#810367: [PATCH] depmod: Don't insert comment in modules.devname if otherwise empty

2016-01-11 Thread Lucas De Marchi
On Sun, Jan 10, 2016 at 1:10 PM, Josh Triplett wrote: > This allows tools to detect the file as empty, such as via systemd's > ConditionFileNotEmpty. > --- > > The string constant extends past 80 columns, per CODING-STYLE. > > The motivation for this patch came from Debian bug 810367. This change

Bug#810367: [PATCH] depmod: Don't insert comment in modules.devname if otherwise empty

2016-01-11 Thread Martin Pitt
Hey Josh, Lucas, Lucas De Marchi [2016-01-11 10:43 -0200]: > On Sun, Jan 10, 2016 at 1:10 PM, Josh Triplett wrote: > > This allows tools to detect the file as empty, such as via systemd's > > ConditionFileNotEmpty. As pointed out on https://github.com/systemd/systemd/pull/2301: Why does this fil

Bug#810367: [PATCH] depmod: Don't insert comment in modules.devname if otherwise empty

2016-01-11 Thread Lucas De Marchi
Hi Martin On Mon, Jan 11, 2016 at 1:55 PM, Martin Pitt wrote: > Hey Josh, Lucas, > > Lucas De Marchi [2016-01-11 10:43 -0200]: >> On Sun, Jan 10, 2016 at 1:10 PM, Josh Triplett wrote: >> > This allows tools to detect the file as empty, such as via systemd's >> > ConditionFileNotEmpty. > > As poi