a little patch related to arrow in SRC_URI

View: New views
3 Messages — Rating Filter:   Alert me  

a little patch related to arrow in SRC_URI

by ZHANG Le :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, all,

It seems that arrow in SRC_URI needs a little patch in order to work.
Please check the attachment.
Thanks!

Zhang, Le

Index: pym/portage/__init__.py
===================================================================
--- pym/portage/__init__.py (revision 12119)
+++ pym/portage/__init__.py (working copy)
@@ -3991,7 +3991,7 @@
  variables = {
  "DISTDIR": mysettings["DISTDIR"],
  "URI":     loc,
- "FILE":    myfile
+ "FILE":    myfile_path
  }
  import shlex, StringIO
  lexer = shlex.shlex(StringIO.StringIO(locfetch), posix=True)

Re: a little patch related to arrow in SRC_URI

by Zac Medico-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zhang Le wrote:
> It seems that arrow in SRC_URI needs a little patch in order to work.

Well, your patch doesn't work with the current default FETCHCOMMAND.
 Instead of patching portage, you should adjust your FETCHCOMMAND
and RESUMECOMMAND to save the file at \${DISTDIR}/\${FILE} like the
current defaults do.
- --
Thanks,
Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkkwPhAACgkQ/ejvha5XGaO0ygCgnKXfAYB/03SGnDTeL0R6HRWR
fi0AnAqNiqBCdCfMNbiIMmPHM9OgkXIG
=cuEg
-----END PGP SIGNATURE-----


Re: a little patch related to arrow in SRC_URI

by ZHANG Le :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10:53 Fri 28 Nov     , Zac Medico wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Zhang Le wrote:
> > It seems that arrow in SRC_URI needs a little patch in order to work.
>
> Well, your patch doesn't work with the current default FETCHCOMMAND.
>  Instead of patching portage, you should adjust your FETCHCOMMAND
> and RESUMECOMMAND to save the file at \${DISTDIR}/\${FILE} like the
> current defaults do.

oops, my bad, thank you, Zac, for pointing this out.

Zhang, Le