Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] url/md5/license fields proposal

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Damien Mascord <tusker AT tusker.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] url/md5/license fields proposal
  • Date: Sun, 21 Jul 2002 23:41:16 +0800

At 07:08 PM 21/07/2002 +0400, Sergey A. Lipnevich <Robert Helgesson wrote:
Robert Helgesson <rycee AT home.se>:

> I would like to propose the following format for the
SOURCE_URL, MD5 and
> LICENSE fields of a DETAILS file.
>
> SOURCE_URL[0]="source1_url1
> source1_url2"
> MD5[0]=source1_md5
> LICENSE[0]=source1_license
> SOURCE_URL[1]="source2_url1
> source2_url2
> source2_url3"
> MD5[1]=source2_md5
> LICENSE[1]="source2_license1 source2_license2"
>

I disagree. It's too big a change for almost no gain.

I believe you do get a huge gain. Consistency, readability, extensibility, and of course, much easier to parse.

> The number in the brackets determine which source
the variable is
> referring too. No need for SOURCE2_URL and such and
therefore no need to
> have a lot of special cases in summon. The dl_source
calls can be
> replaced by a loop.

One way out might be ${!SOURCE*} and then cycle. Maybe
bash allows regex on variable names?

Not sure, but it's still ugly :)

>
> Most of the current code can handle this format with
little or no
> change and automated conversion from the current
format to this one is
> easy to do.

You can say that about any change, sorcery is a small
piece of code to begin with.

And it is best to change it before it becomes unmanageable :)

Sergey.
_______________________________________________
SM-Discuss mailing list
SM-Discuss AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/sm-discuss







Archive powered by MHonArc 2.6.24.

Top of Page