Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99035 - automagic way to find release files.
Summary: automagic way to find release files.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-14 12:48 UTC by John Mylchreest (RETIRED)
Modified: 2006-02-03 07:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Mylchreest (RETIRED) gentoo-dev 2005-07-14 12:48:55 UTC
basically, we have a current symlink which points to the most recent release,
which is nice. The only problem this leaves is that there is no way to
automagically locate files such at:

http://gentoo.blueyonder.co.uk/releases/x86/2005.0/stages/x86/stage3-x86-2005.0.tar.bz2

What I would like to do is do something like:

wget http://gentoo.blueyonder.co.uk/releases/$MYARCH/current/.is_release
or
wget http://gentoo.blueyonder.co.uk/releases/$MYARCH/.latest

this file would contain either the release it relates to "2005.0" or the most
recent release "2005.0".

This would allow people to work out what files it is they need to grab to get
the latest releases automagically.

The main purpose this will give me is the ability to build recent
stable/unstable environment images for not only testing, but as a base for disk
images without intervention. This is important because the kind of people who
will be doing this are really not linux-users :)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jeffrey Forman (RETIRED) gentoo-dev 2005-07-14 12:56:06 UTC
hey guys, johnm brought this up to me today in #-dev, let me hear your thoughts.
Comment 2 Kurt Lieber (RETIRED) gentoo-dev 2005-08-14 11:54:42 UTC
I think the current symlink provides most of this and, with some careful use of
globbing, I would think you could get just about anything you wanted.

If we want more than this, I don't believe providing another hierarchy of
directories and symlinks is the best way to do it.  Instead, I'd like to see
someone write a script that generates a single text file that contains all the
goodness that you need to do whatever it is you want.  Something like:

http://$distfile_mirror/releases/latest_release_info.txt

(or maybe even an XML file)

Maintaining a directory structure is fragile and prone to error.  Any time we
have to change it, it will be a major pain in the arse.  Providing a single text
file, otoh, is much easier, more flexible and more robust.

My $.02.
Comment 3 Corey Shields 2005-09-30 22:55:19 UTC
This isn't a very valuable use of time on either front.  Going with the 
original request, how do you decide which stage tarball to point the "current" 
pointer to, and as for a big text file, the only thing that will change over 
time are the release dates (2005.0, 2005.1), for many releases everything else 
about the url (including the filename) have been the same.  
 
I guess my point is that "current" doesn't scale for the dozens of choices that 
there are in Gentoo, and keeping a list is rather silly given the changes 
between each release are too minute to make a list worth looking at. 
Comment 4 Jeffrey Forman (RETIRED) gentoo-dev 2006-02-03 07:54:57 UTC
This has been in for months. Closing.