summaryrefslogtreecommitdiff
path: root/src/poolarch.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-04-03 10:53:26 +0200
committerMichael Schroeder <mls@suse.de>2012-04-03 10:53:26 +0200
commit17ea16d7e5d7842b593855a4bb7acf349f0d2e03 (patch)
tree157cd93f972d603aaafa52525672412f704f453e /src/poolarch.c
parentd1275e7fcce9d4fc23f418d3b841d8940d2cc163 (diff)
downloadlibsolv-17ea16d7e5d7842b593855a4bb7acf349f0d2e03.tar.gz
libsolv-17ea16d7e5d7842b593855a4bb7acf349f0d2e03.tar.bz2
libsolv-17ea16d7e5d7842b593855a4bb7acf349f0d2e03.zip
- get rid of DEBINA_SEMANTICS, add pool->noarchid, add DISTTYPE_ARCH
Diffstat (limited to 'src/poolarch.c')
-rw-r--r--src/poolarch.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/poolarch.c b/src/poolarch.c
index e41f7d1..4299445 100644
--- a/src/poolarch.c
+++ b/src/poolarch.c
@@ -99,11 +99,7 @@ pool_setarchpolicy(Pool *pool, const char *arch)
pool->lastarch = 0;
return;
}
-#ifndef DEBIAN_SEMANTICS
- id = ARCH_NOARCH;
-#else
- id = ARCH_ALL;
-#endif
+ id = pool->noarchid;
lastarch = id + 255;
id2arch = solv_calloc(lastarch + 1, sizeof(Id));
id2arch[id] = 1; /* the "noarch" class */