Create an Update servers for a Package

User avatar
marcosli
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Sun Dec 07, 2008 7:07 pm

Create an Update servers for a Package

Postby marcosli » Wed Feb 08, 2012 12:52 pm

Good afternoon staff.

First I would ask. You can use the Update Packages for servers?

I'm trying to update a package I'm not getting more, below the xml used:

This is used to package the xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<extension type="package" version="2.5">
<name>Packages Teste</name>
<packagename>teste</packagename>
<version>1.0.0</version>
<url>http://www.teste.com.br/</url>
<packager>Time Teste</packager>
<packagerurl>http://www.teste.com.br/</packagerurl>
<description>Descricao</description>
<update>http://www.teste.com.br/update</update>
<files folder="packages">
   <file type="package" id="pkg_teste">pkg_teste.zip</file>
</files>

   <updateservers>
      <server type="extension" priority="1" name="pkg_teste"><![CDATA[http://app.teste.com.br/teste.xml]]></server>
   </updateservers>
</extension>


This is the XML code http://app.teste.com.br/teste.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?><!-- Update stream generated automatically by Akeeba Release System -->
<updates>
   <update>
      <name>pkg_teste</name>
      <description>Packages Teste</description>
      <element>pkg_teste</element>
      <type>package</type>
      <version>1.0.1</version>
      <infourl title="Packages Teste 1.0.1">https://www.teste.com.br/</infourl>
      <downloads>
         <downloadurl type="full" format="zip">http://app.teste.com.br/pkg_teste-1.0.1.zip</downloadurl>
      </downloads>
      <tags>
         <tag>stable</tag>
      </tags>
      <maintainer>teste.com.br</maintainer>
      <maintainerurl>http://www.teste=.com.br/</maintainerurl>
      <section>Updates</section>
      <targetplatform name="joomla" version="2.5" />
      <client_id>1</client_id>
      <folder></folder>>
   </update>
</updates>


Do you have any ideas?

A hug.
-----------------------------------
Marcos Nascimento de Lima
IA7 Portal Adventista http://www.ia7.com.br
Caxias Online http://caxiasonline.com.br

ivanramosnet
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Mar 30, 2011 7:48 pm
Contact:

Re: Create an Update servers for a Package

Postby ivanramosnet » Mon Mar 26, 2012 8:43 pm

Hi marcosli,

In order to create an update server for a package, you have to change type="extension" to type="collection" in your xml package example.

pkg_teste.xml:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<extension type="package" version="2.5">
<name>Packages Teste</name>
<packagename>teste</packagename>
<version>1.0.0</version>
<url>http://www.teste.com.br/</url>
<packager>Time Teste</packager>
<packagerurl>http://www.teste.com.br/</packagerurl>
<description>Descricao</description>
<update>http://www.teste.com.br/update</update>
<files folder="packages">
   <file type="package" id="pkg_teste">pkg_teste.zip</file>
</files>

   <updateservers>
      <server type="collection" priority="1" name="pkg_teste"><![CDATA[http://app.teste.com.br/teste-list.xml]]></server>
   </updateservers>
</extension>


Then you must create the collection definition. You can see an example here http://docs.joomla.org/Deploying_an_Update_Server#Collection.

teste-list.xml:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<extensionset name="Packages Teste" description="Packages Teste">
   <extension name="pkg_teste" element="pkg_teste" type="package" version="1.0.1" detailsurl="http://app.teste.com.br/teste.xml"/>
</extensionset>


Finally, the XML code of update definition.
teste.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?><!-- Update stream generated automatically by Akeeba Release System -->
<updates>
   <update>
      <name>pkg_teste</name>
      <description>Packages Teste</description>
      <element>pkg_teste</element>
      <type>package</type>
      <version>1.0.1</version>
      <infourl title="Packages Teste 1.0.1">https://www.teste.com.br/</infourl>
      <downloads>
         <downloadurl type="full" format="zip">http://app.teste.com.br/pkg_teste-1.0.1.zip</downloadurl>
      </downloads>
      <tags>
         <tag>stable</tag>
      </tags>
      <maintainer>teste.com.br</maintainer>
      <maintainerurl>http://www.teste=.com.br/</maintainerurl>
      <section>Updates</section>
      <targetplatform name="joomla" version="2.5" />
      <client_id>1</client_id>
      <folder></folder>>
   </update>
</updates>


Return to “Joomla! 2.5 Beta Support”

Who is online

Users browsing this forum: No registered users and 4 guests