diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-07-15 20:59:26 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-07-15 20:59:26 +0000 |
commit | 96e8176ac2289c055c10fff4a60f0396305ffc33 (patch) | |
tree | 4e43802fe7990da86638c4d0359c947e5ee07a1c /version_info.c | |
parent | d9b1e79b1e2c70132b1b58b87775fcedb05e214e (diff) |
More details on getting the distribution name and version on Linux.
svn path=/trunk/; revision=33543
Diffstat (limited to 'version_info.c')
-rw-r--r-- | version_info.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/version_info.c b/version_info.c index f7290fbd30..1c01ba743b 100644 --- a/version_info.c +++ b/version_info.c @@ -418,7 +418,21 @@ get_runtime_version_info(GString *str, void (*additional_info)(GString *)) * that. * * At least on Linux Standard Base-compliant distributions, - * there's an "lsb_release" command. + * there's an "lsb_release" command. However: + * + * http://forums.fedoraforum.org/showthread.php?t=220885 + * + * seems to suggest that if you don't have the redhat-lsb + * package installed, you don't have lsb_release, and that + * /etc/fedora-release has the release information on + * Fedora. + * + * http://linux.die.net/man/1/lsb_release + * + * suggests that there's an /etc/distrib-release file, but + * it doesn't indicate whether "distrib" is literally + * "distrib" or is the name for the distribution, and + * also speaks of an /etc/debian_version file. */ g_string_append_printf(str, "%s %s", name.sysname, name.release); #endif /* HAVE_OS_X_FRAMEWORKS */ |