The Joomla! Forum ™





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Wed Feb 08, 2012 12:52 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Dec 07, 2008 7:07 pm
Posts: 37
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:
<?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:
<?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


Top
 Profile  
 
PostPosted: Mon Mar 26, 2012 8:43 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Mar 30, 2011 7:48 pm
Posts: 5
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:
<?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:
<?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:
<?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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group