summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-13 11:03:47 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-13 11:03:47 +0000
commit644f432a76c59aaf7cd4612a6f5757735eee5452 (patch)
treefcb08b369bfa8cf59c9c4c3509c2aad6ea424086 /urpm
parentd8d77e69ad50f9a62bf0295b6410a05595f413f0 (diff)
downloadurpmi-644f432a76c59aaf7cd4612a6f5757735eee5452.tar
urpmi-644f432a76c59aaf7cd4612a6f5757735eee5452.tar.gz
urpmi-644f432a76c59aaf7cd4612a6f5757735eee5452.tar.bz2
urpmi-644f432a76c59aaf7cd4612a6f5757735eee5452.tar.xz
urpmi-644f432a76c59aaf7cd4612a6f5757735eee5452.zip
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)
Diffstat (limited to 'urpm')
-rw-r--r--urpm/cfg.pm6
1 files 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