summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-06-27 21:04:53 +0200
committerJulian Andres Klode <jak@debian.org>2010-06-27 21:04:53 +0200
commit5143f361005775e3674f4f5871ad574cbe8ef705 (patch)
treee017977d406988b75cf5c93aed1cb87555897faf
parent3b20aef1a2b5fd2fcd6f62a819edbdb19631fb98 (diff)
deblistparser: Special-case *-armel, lpia and powerpcspe architectures.
-rw-r--r--apt-pkg/deb/deblistparser.cc6
1 files changed, 6 insertions, 0 deletions
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 <kernel>-<cpu>.
*/
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;
}
/*}}}*/