[SlimDevices: Beta] New Nightly RPM Build for SqueezeCenter 7...

Diranged Diranged.31ykfn1198268701 at no-mx.forums.slimdevices.com
Fri Dec 21 12:23:31 PST 2007


Fletch;250673 Wrote: 
> Matt,
> 
> I'm working on a patch for this and I noticed something that I don't
> understand:
> 
> > 
Code:
--------------------
  >   > @@ -70,11 +70,15 @@
  > 		showUsage();
  > 	}
  > 
  > -	my $prefix = $^O eq 'linux' ? 'SlimServer' : 'SqueezeCenter';
  > +	my $prefix = $^O eq 'linux' ? 'SqueezeCenter' : 'SqueezeCenter';
  > 	
  > 	if ($snapshot) {
  > 
  > -		$version = strftime('%Y-%m-%d', localtime());
  > +		## If we're doing a snapshot, but a version has been explicitly 
  > +		## configured, always use the explicitly configured data.
  > +		if (!$version) { 
  > +			$version = strftime('%Y-%m-%d', localtime());
  > +		}
  > 
  > 		if ($branch) {
  > 			$title      = "${prefix}_${branch}_v$version";
--------------------
> > 
> 
> This seems to mean that if I run makerelease.pl with "--snapshot
> --version 7.0.0" the tarball will be built as
> SqueezeCenter_trunk_v7.0.0.tar.gz instead of
> SqueezeCenter_trunk_v2007-12-21.tar.gz.  That's not really the
> intended result, is it?

That probably does occur... and should be fixed. Though its not a big
issue, since that was a use-case that never existed before. When you
ran --snapshot, your version was always overwritten ... no matter what.
Now I'm just allowing the ability to force the version-name for the
purpose of building the RPM in a yum-ified way.


-- 
Diranged
------------------------------------------------------------------------
Diranged's Profile: http://forums.slimdevices.com/member.php?userid=13773
View this thread: http://forums.slimdevices.com/showthread.php?t=41217



More information about the beta mailing list