summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-07-25 12:37:06 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-07-25 12:37:06 +0200
commitbd9d81e3d793b9fb5c94fd5ad0b00245205b8cbc (patch)
tree4933781e6abcaabd1805811b38f97f48637b1d74 /apt-pkg
parentac32148639b3a35bc359275b9265f41f81e29296 (diff)
* apt-pkg/aptconfiguration.cc:
- ensure that native architecture is if not specified otherwise the first architecture in the Architectures vector
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/aptconfiguration.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/aptconfiguration.cc b/apt-pkg/aptconfiguration.cc
index e8c8e73d0..9ccbeecf1 100644
--- a/apt-pkg/aptconfiguration.cc
+++ b/apt-pkg/aptconfiguration.cc
@@ -352,7 +352,7 @@ std::vector<std::string> const Configuration::getArchitectures(bool const &Cache
if (archs.empty() == true ||
std::find(archs.begin(), archs.end(), arch) == archs.end())
- archs.push_back(arch);
+ archs.insert(archs.begin(), arch);
// erase duplicates and empty strings
for (std::vector<string>::reverse_iterator a = archs.rbegin();