* [PATCH] kconfig: Gracefully exit if the default config files are not present
@ 2013-08-13 21:29 Mike Pagano
2013-08-15 15:45 ` Michal Marek
0 siblings, 1 reply; 2+ messages in thread
From: Mike Pagano @ 2013-08-13 21:29 UTC (permalink / raw)
To: linux-kbuild
Gracefully exit if the default config files are not present. (.config and
.config.old)
Diffconfig is a utility script for comparing kernel configuration files.
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
---
scripts/diffconfig | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/scripts/diffconfig b/scripts/diffconfig
index b91f3e3..33c696f 100755
--- a/scripts/diffconfig
+++ b/scripts/diffconfig
@@ -94,8 +94,12 @@ def main():
configa_filename = sys.argv[1]
configb_filename = sys.argv[2]
- a = readconfig(file(configa_filename))
- b = readconfig(file(configb_filename))
+ try:
+ a = readconfig(file(configa_filename))
+ b = readconfig(file(configb_filename))
+ except IOError,(errno, strerror):
+ print "I/O error(%s: %s)\n" % (errno, strerror)
+ usage()
# print items in a but not b (accumulate, sort and print)
old = []
--
1.8.1.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kconfig: Gracefully exit if the default config files are not present
2013-08-13 21:29 [PATCH] kconfig: Gracefully exit if the default config files are not present Mike Pagano
@ 2013-08-15 15:45 ` Michal Marek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2013-08-15 15:45 UTC (permalink / raw)
To: Mike Pagano; +Cc: linux-kbuild
Hi Mike,
On 13.8.2013 23:29, Mike Pagano wrote:
> Gracefully exit if the default config files are not present. (.config and
> .config.old)
Two minor nitpicks about the changelog: The subject line would be more
to the point if it mentioned the name of the utility you are fixing.
Otherwise, people might get the impression that you are fixing a tool
from scripts/kconnfig, like 'make oldconfig' or 'make menuconfig'. Just
change it to
diffconfig: Gracefully exit if the default config files are not present
> Diffconfig is a utility script for comparing kernel configuration files.
This is superfluous information. Just describe the change you made and
that's it.
> - a = readconfig(file(configa_filename))
> - b = readconfig(file(configb_filename))
> + try:
> + a = readconfig(file(configa_filename))
> + b = readconfig(file(configb_filename))
> + except IOError,(errno, strerror):
> + print "I/O error(%s: %s)\n" % (errno, strerror)
> + usage()
The second block is missing one column of indentation.
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-15 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-13 21:29 [PATCH] kconfig: Gracefully exit if the default config files are not present Mike Pagano
2013-08-15 15:45 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox