diff options
author | Michael Schroeder <mls@suse.de> | 2009-07-01 10:32:28 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2009-07-01 10:32:28 +0200 |
commit | b739fb5bbdf2378b3e8d571df396c665af61a02d (patch) | |
tree | 09b3996ffc69643d7d6b3a17fe80ad948351237f /src/policy.c | |
parent | 1ef91b64f728cd29a57023c057e92354a74097c3 (diff) | |
download | libsolv-b739fb5bbdf2378b3e8d571df396c665af61a02d.tar.gz libsolv-b739fb5bbdf2378b3e8d571df396c665af61a02d.tar.bz2 libsolv-b739fb5bbdf2378b3e8d571df396c665af61a02d.zip |
- only add selfprovides if name is set
- add ARCH_ALL
Diffstat (limited to 'src/policy.c')
-rw-r--r-- | src/policy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/policy.c b/src/policy.c index 650da2b..8c442a0 100644 --- a/src/policy.c +++ b/src/policy.c @@ -397,8 +397,13 @@ policy_illegal_archchange(Solver *solv, Solvable *s1, Solvable *s2) } /* we allow changes to/from noarch */ +#ifndef DEBIAN_SEMANTICS if (a1 == a2 || a1 == ARCH_NOARCH || a2 == ARCH_NOARCH) return 0; +#else + if (a1 == a2 || a1 == ARCH_ALL || a2 == ARCH_ALL) + return 0; +#endif if (!pool->id2arch) return 0; a1 = a1 <= pool->lastarch ? pool->id2arch[a1] : 0; |