2007/2/25, Jonas Karlsson <[EMAIL PROTECTED]>:
> 2007/2/25, Lucas C. Villa Real <[EMAIL PROTECTED]>:
> > CVSROOT:        /sources/goboscripts
> > Module name:    tools
> > Changes by:     Lucas C. Villa Real <lucasvr>   07/02/25 19:58:33
> >
> > Modified files:
> >         Compile/bin    : NewVersion
> >
> > Log message:
> >         Automatically downloads tarballs and adds file_size/file_md5 to the 
> > new recipe.
> >
> > CVSWeb URLs:
> > http://cvs.savannah.gnu.org/viewcvs/tools/Compile/bin/NewVersion?cvsroot=goboscripts&r1=1.22&r2=1.23
> >
> > Patches:
> > Index: NewVersion
> > ===================================================================
> > RCS file: /sources/goboscripts/tools/Compile/bin/NewVersion,v
> > retrieving revision 1.22
> > retrieving revision 1.23
> > diff -u -b -r1.22 -r1.23
> > --- NewVersion  16 Feb 2007 13:03:56 -0000      1.22
> > +++ NewVersion  25 Feb 2007 19:58:33 -0000      1.23
> > @@ -155,6 +155,21 @@
> >     Log_Normal "This recipe contains patches. Please check if they still 
> > apply."
> >  fi
> >
> > +if [ "$url" ]
> > +then
> > +   Log_Normal "Downloading source code..."
> > +   if ! FetchArchive "$newrecipedir/Recipe"
> > +   then
> > +      rm -rf "$newrecipedir"
> > +      Die "Could not download source code, aborting."
> > +   fi
> > +   file="`basename $url`"
> > +   filesize="`Get_Size $compileArchivesDir/$file`"
> > +   filemd5="`Get_MD5 $compileArchivesDir/$file`"
> > +   tmpfile=`Temporary_File`
> > +   cat "$newrecipedir/Recipe" | sed 
> > "s,\(^url=.*\),\1\nfile_size=$filesize\nfile_md5=$filemd5,g" > $tmpfile && 
> > mv $tmpfile "$newrecipedir/Recipe"
> > +fi
> > +
> >  Log_Normal "Recipe template for $packagename $newversion created"
> >  Log_Normal "Printing result ($newrecipedir/Recipe):"
> >  cat "$newrecipedir/Recipe"
>
> file_size and file_md5 should not be added to recipes that already
> have those set.
>
Never mind. I just realized that those variables are left out in the
new version. I always thought that they were updated, and therefore
doubled with this new implementation, but I was wrong.

-- 
/Jonas
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to