From 644f432a76c59aaf7cd4612a6f5757735eee5452 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 13 Feb 2006 11:03:47 +0000 Subject: Document that parsing /etc/release is fragile, because the format of this file is undocumented, and there is no definitive way to get version and architecture for a given Mandriva system. (Warly sux) --- urpm/cfg.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/urpm/cfg.pm b/urpm/cfg.pm index 887cb545..41639560 100644 --- a/urpm/cfg.pm +++ b/urpm/cfg.pm @@ -42,7 +42,9 @@ Returns 1 on success, 0 on failure. =cut -#- implementations of the substitutions. arch and release are mdk-specific +#- implementations of the substitutions. arch and release are mdk-specific. +#- XXX this is fragile code, it's an heuristic that depends on the format of +#- /etc/release my ($arch, $release); sub _init_arch_release () { @@ -252,6 +254,6 @@ __END__ Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 MandrakeSoft SA -Copyright (C) 2005 Mandriva SA +Copyright (C) 2005, 2006 Mandriva SA =cut -- cgit v1.2.1