[Slapt-get-devel] right arch package selection

Andrei Butirsky butirsky at gmail.com
Sun Oct 9 15:35:16 EDT 2011


Hi Jason,
I have issue when upgrading from Alien's 'ktown' repository
http://alien.slackbook.org/ktown/
I have x86_64 system, but when I press 'Mark All Upgrades' in Gslapt, it
marks kde packages of wrong i486 architecture. So every time I upgrade
kde, I have to manually select all needed kde packages.
To deal with the issue I wrote a patch which works for me:

--- src/package.c.orig  2011-10-09 18:20:20.000000000 +0400
+++ src/package.c       2011-10-09 18:49:57.000000000 +0400
@@ -1147,7 +1147,11 @@
         /* they are equal if the integer values are equal */
         /* for instance, "1rob" and "1" will be equal */
         if (atoi(a_build) == atoi(b_build))
+      {
+       if (strstr(b, "x86_64"))
+               return lesser;
           return equal;
+      }

         if (atoi(a_build) < atoi(b_build))
           return greater;

Obviously it is duty hack.
It would be fine if you implement more generous approach to solve the
problem.
Thanks.


More information about the Slapt-get-devel mailing list