[Libreoffice-qa] Online update testing

Jan Holesovsky kendy at suse.cz
Tue Nov 6 06:21:27 PST 2012


Hi Klaus-Jürgen,

klaus-jürgen weghorn ol píše v Po 05. 11. 2012 v 21:37 +0100:

> > And again, 3.6.3.1 is "up to date".
> 
> 3.6.3 isn't in the online update yet.

Should be fixed now, sorry :-(

> Is it possible that someone with no developer skills can make such changes?

Anybody with a basic .php knowledge is able to do that :-) - it is
enough to do:

# only once, to prepare the repository where you will do the changes
git clone git://anongit.freedesktop.org/libreoffice/website update
cd update
git checkout -b update origin/update

# for every new version
git pull -r    # to get the newest repo
vim check.php  # or your another favorite text editor
# do a change like 
# http://cgit.freedesktop.org/libreoffice/website/commit/?h=update&id=883494dc52ed9aebe8b6072a52d047d7b075bbdc
# ie.:
# - add previous version(s) to $update_versions array
#   (in the case of 3.6.4, you should uncomment the line under "To be
#   uncommented when 3.6.4 Final is out", plus add 3.6.4 RC1)
# - put the gitid of the current version (that we should update to) to
#   'gitid' of the appropriate entry in the $update_map array
# - update the 'id' and 'version' of that entry too

To get the gitid, open the About dialog of the appropriate version (RC1
and final), and copy the gitid from there.

# test it in shell, run something like:

HTTP_USER_AGENT='LibreOffice 3.5 (235ab8a-3802056-4a8fed3-2d66ea8-e241b80; Windows; x86; BundledLanguages=en-US af ar as ast be bg bn bo br brx bs ca ca-XV cs cy da de dgo dz el en-GB en-ZA eo es et eu fa fi fr ga gd gl gu he hi hr hu id is it ja ka kk km kn ko kok ks ku lb lo lt lv mai mk ml mn mni mr my nb ne nl nn nr nso oc om or pa-IN pl pt pt-BR ro ru rw sa-IN sat sd sh si sk sl sq sr ss st sv sw-TZ ta te tg th tn tr ts tt ug uk uz ve vi xh zh-CN zh-TW zu)' HTTP_ACCEPT_LANGUAGE=cs-CZ php5 ./check.php

should return something like

<?xml version="1.0" encoding="utf-8"?>
<inst:description xmlns:inst="http://update.libreoffice.org/description">
  <inst:id>LibreOffice 3.5.7</inst:id>
  <inst:gitid>3215f89-f603614-ab984f2-7348103-1225a5b</inst:gitid>
  <inst:os>Windows</inst:os>
  <inst:arch>x86</inst:arch>
  <inst:version>3.5.7</inst:version>
  <inst:buildid>9999</inst:buildid>
  <inst:update type="text/html" src="http://www.libreoffice.org/download/?type=win-x86&lang=cs&version=3.5.7" />
</inst:description>

HTTP_USER_AGENT="LibreOffice 3.5 (e371a95-bf68a13-5a1aa2b-d3c1ae9-b938258; MacOSX; x86; BundledLanguages=en-US)" HTTP_ACCEPT_LANGUAGE=cs-CZ php check.php

should return something like

<?xml version="1.0" encoding="utf-8"?>
<inst:description xmlns:inst="http://update.libreoffice.org/description">
  <inst:id>LibreOffice 3.6.3</inst:id>
  <inst:gitid>58f22d5-270d05a-e2abed1-ea17a85-9b5702</inst:gitid>
  <inst:os>MacOSX</inst:os>
  <inst:arch>x86</inst:arch>
  <inst:version>3.6.3</inst:version>
  <inst:buildid>9999</inst:buildid>
  <inst:update type="text/html" src="http://cs.libreoffice.org/stahnout/" />
</inst:description>

HTTP_USER_AGENT="LOdev 3.6 (1f1cdd8-e28082e-41df8bf-b153627-a97a84; Windows; x86; BundledLanguages=en-US af am ar as ast be bg bn bn-IN bo br brx bs ca ca-XV cs cy da de dgo dz el en-GB en-ZA eo es et eu fa fi fr ga gd gl gu he hi hr hu id is it ja ka kk km kn ko kok ks ku lb lo lt lv mai mk ml mn mni mr my nb ne nl nn nr nso oc om or pa-IN pl pt pt-BR qtz ro ru rw sa-IN sat sd sh si sk sl sq sr ss st sv sw-TZ ta te tg th tn tr ts tt ug uk uz ve vi xh zh-CN zh-TW zu)" HTTP_ACCEPT_LANGUAGE=cs-CZ php check.php

should return something like

<?xml version="1.0" encoding="utf-8"?>
<inst:description xmlns:inst="http://update.libreoffice.org/description">
  <inst:id>LibreOffice 3.6.3</inst:id>
  <inst:gitid>58f22d5-270d05a-e2abed1-ea17a85-9b5702</inst:gitid>
  <inst:os>Windows</inst:os>
  <inst:arch>x86</inst:arch>
  <inst:version>3.6.3</inst:version>
  <inst:buildid>9999</inst:buildid>
  <inst:update type="text/html" src="http://cs.libreoffice.org/stahnout/" />
</inst:description>

# now, commit it:
git commit -a # use commit message like "Offer update to 3.6.3.2 (3.6.3 Final)."

# create a patch from that:
git format-patch origin/master

This will create a patch like 0001-Offer-update-to.patch; please send it
to me, Thorsten Behrens, or Petr Mladek, we will double-check it, push,
and deploy it.

Thank you a lot,
Kendy



More information about the Libreoffice-qa mailing list