From: Julian Andres Klode Date: Sun, 27 Jun 2010 19:04:53 +0000 (+0200) Subject: deblistparser: Special-case *-armel, lpia and powerpcspe architectures. X-Git-Tag: 0.8.0~9^2~31 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/5143f361005775e3674f4f5871ad574cbe8ef705 deblistparser: Special-case *-armel, lpia and powerpcspe architectures. --- diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 00016679a..6ede14c4d 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -479,6 +479,12 @@ const char *debListParser::ConvertRelation(const char *I,unsigned int &Op) * The complete architecture, consisting of -. */ static string CompleteArch(std::string& arch) { + if (arch == "armel") return "linux-arm"; + if (arch == "lpia") return "linux-i386"; + if (arch == "powerpcspe") return "linux-powerpc"; + if (arch == "uclibc-linux-armel") return "linux-arm"; + if (arch == "uclinux-armel") return "uclinux-arm"; + return (arch.find("-") != string::npos) ? arch : "linux-" + arch; } /*}}}*/