[Slapt-get-devel] right arch package selection
Jason Woodward
woodwardj at jaos.org
Sun Oct 9 17:34:33 EDT 2011
Hi Andrei,
> 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.
What do you have in your excludes? Do you have i[3456]86 ?
take care,
jason
--
Jason Woodward
More information about the Slapt-get-devel
mailing list