<div dir="ltr">Sorry, keep replying to one person only instead of the mailing list.<div><div class="gmail_quote"><br><br><div dir="ltr">How about the other way around:<div><br></div><div>if xrev == 0 --> haskell-zlib-0.5.4.2-76-x86_64.pkg.tar.xz</div><div>if xrev == n && n > 0 --> haskell-zlib-0.5.4.2-76.n-x86_64.pkg.tar.xz</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Nicola</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 30, 2015 at 8:10 AM, Xyne <span dir="ltr"><<a href="mailto:xyne@archlinux.ca" target="_blank">xyne@archlinux.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2015-04-29 22:11 +0200<br>
<span>Magnus Therning wrote:<br>
<br>
>I've slowly been working away on some way to deal with the addition of<br>
>x-revisions in Cabal files. My plan at the moment is to include it in<br>
>the `pkgrel` in this way<br>
><br>
> haskell-zlib-0.5.4.2-76-x86_64.pkg.tar.xz<br>
><br>
>becomes<br>
><br>
> haskell-zlib-0.5.4.2-0.76-x86_64.pkg.tar.xz<br>
><br>
>given that the x-revision is 0.<br>
><br>
>This of course has the slight drawback that everyone will have to<br>
>re-install all packages :(<br>
><br>
>I'd love to hear if anyone has a better suggestion, in particular if<br>
>it means not having to re-install. (I think I've found a way that<br>
>won't require a re-build.)<br>
><br>
>/M<br>
<br>
</span>The pkgrel should be an integer that is incremented by 1 with each release so it should not be included there. I don't know what x-revisions are but perhaps you can (ab)use the PKGBUILD "epoch" to managed them: <a href="https://wiki.archlinux.org/index.php/PKGBUILD#epoch" target="_blank">https://wiki.archlinux.org/index.php/PKGBUILD#epoch</a><br>
<br>
If not, can you explain what they are and how they are used?<br>
<br>
Regards,<br>
Xyne<br>
_______________________________________________<br>
arch-haskell mailing list<br>
<a href="mailto:arch-haskell@haskell.org" target="_blank">arch-haskell@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/arch-haskell" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/arch-haskell</a><br>
</blockquote></div><br></div>
</div></div></div><br></div></div>