Setting up a package server

Started by Thantos, April 04, 2005, 07:28:01 PM

Previous topic - Next topic

Thantos

I'm trying to setup my own little package server but I'm having problems with getting the package manager to connect to it.  I keep getting "Unable to connect to the server. Please try using this URL instead."  Now I know my web server can connect to other package servers so thats not the issue on this one.

The directory and files are 777 chmod
I have index.php setup as the index file.

example output:
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/package-list">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This is a package server listing file of SMF packages.

If you are trying to install packages, please try pointing the package
manager in your forum to this link, instead of accessing it directly.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<package-list xmlns="http://www.simplemachines.org/xml/package-list" xmlns:smf="http://www.simplemachines.org/">
<!-- This is the title of your package server list itself. -->
<list-title>MikeMill's Package Server</list-title>
<default-author email="[email protected]">Michael Miller</default-author>
<default-website title="Mike Mill Org">http://www.mikemill.org/</default-website>

<!-- Sections are grouped off only for organization really. -->
<section>
<!-- This is shown as the section's title. -->
<title>Modifications</title>

<!-- A modification!  These are great!! -->
<modification>
<!-- Remember, these have to be the same as those in the package itself! -->
<id>MikeMill:ShowAddBadge</id>
<name>Show Multiple Badges</name>
<version>0.1</version>
<author>Mike</author>


<!-- Where is the file itself? (must be relative to the current URL for security reasons!) -->
<filename>multiplebadges_0-1.zip</filename>

<!-- A description for this mod! (required)  The CDATA makes it so you can type html in here. -->
<description><![CDATA[Test]]></description>
</modification>
</section>
</package-list>



Currently this is on a test site before I move it to my live site.

Thantos

Well I found the problem.  The package manager shoves /packages.xml on the end of the url you specify.

Now I have to see if I can make my server parse it as PHP so I can have a dynamic list.

TLM

I hate to drag this from the depths of the board, but exactly what am I doing diffrent, same situation almost.  I get a double section title and no mod to show up when I hit browse.  Could you point me the way?  I would like to setup a package server for beta releases of my mods for some people I trust to test.

TLM

Never mind, I figured it out, its a bug in package manager.

Thantos

You mind detailing the bug?
Since you aren't the first person to mention that exact problem, I kinda thought there might be a bug, just kept slipping my mind to look at it.

TLM

#5
In the package.xml file, if you have only one section and two mods (did not test 3+) the first modification will show up double.  If you have one modification and text, it will double the text (If i remember right).  If you have no text and no modification, it doubles the title.

A temp fix is to do what I did, make a "bad" section so the doubleing is only in the "bad" section.

Its only the last section as far as  I can tell, 2+ sections and only the last one will do this doubleing.

http://www.mindlesstux.com/packages/packages.xml - if you want to see what I did to make a temp fix so I can  at least see both my modifications.

*edit* added an s to package.xml so its packages.xml */edit*

TLM

Also while your snooping around in that section of the code, could you add in a tag for packages of require/dependacy.  So that mods that require other mods will alert people to the fact?

snork13

I reported this some time back if i remember, I just doubled too. I going to look at this problem again.
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

TLM

I would, but I got 3 mods I said I would put out this weekend, thats not counting a lan party and finals so im running out of time there.  :)

Advertisement: