[aur-general] Incorrect name when downloading from source=()
Hello, To package cellwriter, I need to download this patch[1]. But once downloaded, the name of the file is "attachment?aid=-5287197620305474653&name=cellwriter-1.3.4-cellwidget-dont-disable-xinput.diff" instead of just "cellwriter-1.3.4-cellwidget-dont-disable-xinput.diff". - Is it a big problem ? I mean if another user do not use wget will my PKGBUILD work for him ? - Is there a way to force a correct behavior ? [1] http://cellwriter.googlecode.com/issues/attachment?aid=-5287197620305474653&name=cellwriter-1.3.4-cellwidget-dont-disable-xinput.diff
Côme Pruvost wrote:
Hello,
To package cellwriter, I need to download this patch[1]. But once downloaded, the name of the file is "attachment?aid=-5287197620305474653&name=cellwriter-1.3.4-cellwidget-dont-disable-xinput.diff" instead of just "cellwriter-1.3.4-cellwidget-dont-disable-xinput.diff".
- Is it a big problem ? I mean if another user do not use wget will my PKGBUILD work for him ? - Is there a way to force a correct behavior ?
what does ur PKGbuild look like?
2009/6/16 Côme Pruvost <come.pruvost@gmail.com>:
Hello,
To package cellwriter, I need to download this patch[1]. But once downloaded, the name of the file is "attachment?aid=-5287197620305474653&name=cellwriter-1.3.4-cellwidget-dont-disable-xinput.diff" instead of just "cellwriter-1.3.4-cellwidget-dont-disable-xinput.diff".
- Is it a big problem ? I mean if another user do not use wget will my PKGBUILD work for him ? - Is there a way to force a correct behavior ?
You can always download the patch, rename it and put in the source tarball (makepkg --source) -- Abhishek
You can always download the patch, rename it and put in the source tarball (makepkg --source)
-- Abhishek
Yeah, finally I think this is a good idea. I don't like adding too much to the tarball, but here it is the only way to ensure it will behave correctly for anyone... Thanks for the suggestion.
Abhishek Dasgupta wrote:
2009/6/16 Côme Pruvost <come.pruvost@gmail.com>:
Hello,
To package cellwriter, I need to download this patch[1]. But once downloaded, the name of the file is "attachment?aid=-5287197620305474653&name=cellwriter-1.3.4-cellwidget-dont-disable-xinput.diff" instead of just "cellwriter-1.3.4-cellwidget-dont-disable-xinput.diff".
- Is it a big problem ? I mean if another user do not use wget will my PKGBUILD work for him ? - Is there a way to force a correct behavior ?
You can always download the patch, rename it and put in the source tarball (makepkg --source)
Or use something like cellwritter.diff::http://cellwriter.googlecode.com/... in your source array. The downloaded file will get the name specified before the "::". Allan
Or use something like
cellwritter.diff::http://cellwriter.googlecode.com/...
in your source array. The downloaded file will get the name specified before the "::".
Allan
Aha ! :) Than the kind of thing I was looking for !! Thanks a lot !
On Tue, Jun 16, 2009 at 03:07, Cilyan Olowen<gaknar@gmail.com> wrote:
Or use something like
cellwritter.diff::http://cellwriter.googlecode.com/...
in your source array. The downloaded file will get the name specified before the "::".
Allan
Aha ! :) Than the kind of thing I was looking for !! Thanks a lot !
For future reference, this and many other helpful tips are in the PKGBUILD manpage :)
Btw, I'm pretty close friends with the author of cellwriter. If he needs to do a general patch upstream or something, I'm sure I can get him to. Anything up? Cheers, -AT
2009/6/16 Andrei Thorp <garoth@gmail.com>:
Btw, I'm pretty close friends with the author of cellwriter. If he needs to do a general patch upstream or something, I'm sure I can get him to. Anything up?
Cheers,
-AT
It seems the patch is indeed in discussion. Of course for now some are experiencing crashes, but the solution given by the patch is discussable. Well at least that's what I understood. I think the author is aware of that problem as the patch comes from is official bugtracker and he affected himself to the issue. I decided to apply the patch because if a developer can focus on what is good for its software, I think a packager should focus on usability. And from that point of view, a bad solution is temporarily better than software crashes making it unusable. And by the way, indeed, the answer was in the PKGBUILD man, I'm sorry I always forget that PKGBUILD has a man page, I usually only check wiki. I try to mark that in my head for next time ;) Cilyan
On Tue, Jun 16, 2009 at 10:36 AM, Cilyan Olowen<gaknar@gmail.com> wrote:
It seems the patch is indeed in discussion. Of course for now some are experiencing crashes, but the solution given by the patch is discussable.
Okay, well. I'll breifly mention it to him, but otherwise leave it alone. Cheers, -AT
participants (7)
-
Abhishek Dasgupta
-
Allan McRae
-
Andrei Thorp
-
Cilyan Olowen
-
Côme Pruvost
-
Daenyth Blank
-
nathan owe.