[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnu-arch-users] Single command to get source
From: |
Jeffrey Yasskin |
Subject: |
[Gnu-arch-users] Single command to get source |
Date: |
Tue, 27 Jan 2004 23:26:26 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040117 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This suggestion is also in the wiki under "Discuss Arch features". It
may be already implemented in the undocumented `tla grab`. If it is,
please document it (in the wiki's "Tla Reference/grab"?).
I don't have time to implement this, so I don't expect to see it for a
while. It would just be nice to know it's on a TODO list somewhere.
- ---
Right now, to get the source code for a project (i.e.
address@hidden/project--main--1.0 stored in
http://example.com/archives/2004), someone has to issue two commands:
$ tla register-archive http://example.com/archives/2004
$ tla get address@hidden/project--main--1.0
I'd like to make it possible to issue only one command for the same thing:
$ tla get http://example.com/archives/2004#project--main--1.0
The basic reason to use the fragment identifier is that it should be
easy to parse into archive-URI and version, and logically, a version is
a fragment of an archive. From a project tree, the URI can be created
with the "short" script:
echo $(tla whereis-archive $(tla parse-package-name -a $(tla
tree-version)))#$(tla parse-package-name --package-version $(tla
tree-version))
If the project is based on a config, the problem is even more pronounced:
$ tla register-archive
http://regexps.srparish.net/{archives}/address@hidden
$ tla get address@hidden/dists--devo tla-1.1
$ cd tla-1.1
$ tla build-config configs/emf.net/devo.tla
Perhaps instead:
$ tla get
http://regexps.srparish.net/{archives}/address@hidden/configs/emf.net/devo.tla
I'm less sure that this suggestion doesn't have some obvious flaws. It
should still be easy to parse though.
Jeffrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAF0gBfjbRRQT0l5URAv5JAKDznXr79fquPoIp+o4USIgORqe/kwCfUpAa
+XlC/q+h+YufDPIkosU7b4g=
=5XeY
-----END PGP SIGNATURE-----
- [Gnu-arch-users] Single command to get source,
Jeffrey Yasskin <=