Page 1 of 1

Wrong code in Download-Packages

Posted: Mon Apr 14, 2014 8:36 pm
by MarioH
Hi all,

i'm not sure, but i downloaded the beta packages for 2.0 beta 1 and i got errors after copying the files over my test installation. There was no update dialog after loading the test site.

Then I examinated the serendipity_config.inc.php an saw this:

// The version string
$serendipity['version'] = '1.7-alpha1';

Greets
Mario

Re: Wrong code in Download-Packages

Posted: Mon Apr 14, 2014 8:42 pm
by MarioH
I downloaded the beta-2 from github and everything is ok.

Re: Wrong code in Download-Packages

Posted: Tue Apr 15, 2014 9:19 am
by Timbalu
There is nothing wrong with the 2.0-beta-1 zip announced here in download section as far as I can see.
I would assume it was some kind of upload (ftp) error which hit you.

Re: Wrong code in Download-Packages

Posted: Tue Apr 15, 2014 9:43 am
by MarioH
Hi,

no, Garvin fixed the packages last night, they were accidently built against the master-branch.

Greets
Mario

Re: Wrong code in Download-Packages

Posted: Tue Apr 15, 2014 9:50 am
by Timbalu
Oh, well then ... :mrgreen: (which does not explain why it held a v.1.7-alpha1)

Re: Wrong code in Download-Packages

Posted: Tue Apr 15, 2014 9:56 am
by yellowled
Timbalu wrote:(which does not explain why it held a v.1.7-alpha1)
Garvin mentioned something on Twitter about the release script accidentally pulling the master instead on the 2.0 branch.

YL

Re: Wrong code in Download-Packages

Posted: Tue Apr 15, 2014 11:15 am
by garvinhicking
Hi!

Reason was that I used this buildscript:

Code: Select all

#!/bin/bash

cd git/2.0/Serendipity
git pull
git archive --output release.tar --prefix serendipity/ master
mv release.tar ../../../
cd ../../../
rm -rf serendipity
tar -xvf release.tar
rm serendipity-2.0-beta1.tar.gz
rm serendipity-2.0-beta1.zip
cd serendipity/bundled-libs
./create_release.sh serendipity-2.0-beta1.tar.gz serendipity nobody nogroup
cd ../../
zip -9 -r serendipity-2.0-beta1.zip serendipity
tar --owner=nobody --group=nogroup -cjf "serendipity-2.0-beta1.tar.bz2" serendipity
cd serendipity
mkdir templates_stripped
mv templates/default templates_stripped/
mv templates/carl_contest templates_stripped/
mv templates/bulletproof templates_stripped/
mv templates/2k11 templates_stripped/
rm -rf templates
mv templates_stripped templates
rm -rf deployment
rm checksums.inc.php
cd ..
zip -r serendipity-2.0-beta1-lite.zip serendipity
tar --owner=nobody --group=nogroup -czf "serendipity-2.0-beta1-lite.tar.gz" "serendipity"
tar --owner=nobody --group=nogroup -cjf "serendipity-2.0-beta1-lite.tar.bz2" "serendipity"

scp serendipity/docs/NEWS garvinhicking@frs.sourceforge.net:/home/frs/project/p/ph/php-blog/serendipity/2.0-beta1/README
scp serendipity-2.0-beta1* garvinhicking@frs.sourceforge.net:/home/frs/project/p/ph/php-blog/serendipity/2.0-beta1/
php s9ymd5.php 2.0-beta1
echo "Also update docs/RELEASE!"
However, this single line:

Code: Select all

git archive --output release.tar --prefix serendipity/ master
Supposedly only checked out the master branch of my "2.0" directory checkout, which I did ages ago (1.7 alpha).

I changed the line to read:

Code: Select all

git archive --output release.tar --prefix serendipity/ 2.0
and then reuploaded the release.

Sorry for this bug, I wasn't careful enough. :-(