Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Sheepy - marraskuu 11, 2005, 06:59:08 IP

Otsikko: [Bug] require-file package action makes 0 size file - 1.1 RC1
Kirjoitti: Sheepy - marraskuu 11, 2005, 06:59:08 IP
The following package-info.xml is supposed to copy itself to the root folder.  On SMF 1.1 RC1 It ends up creating a zero sized file on my machine.  A work around is to use require-dir instead, but it certainly caused me some headache.

remove-file works as intended.

<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<name>Mod copy file test</name><id>HoYiuYeung:CopyTest</id><type>modification</type><version>1.0</version>
<install>
<readme type="inline">This mod will copy itself to root directory</readme>
<require-file name="package-info.xml" destination="$boarddir" />
</install>
<uninstall>
<readme type="inline">Hope this will be fixed soon.</readme>
<remove-file name="$boarddir/package-info.xml" />
</uninstall>
</package-info>


I'm using Windows XP Pro w/ Apache as admin.  Since require-dir works perfectly, I am assuming it's not my problem.
Otsikko: Re: [Bug] require-file package action makes 0 size file - 1.1 RC1
Kirjoitti: JayBachatero - marraskuu 11, 2005, 07:06:28 IP
This is a known bug for RC1 and it will be fixed for the next release.
Otsikko: Re: [Bug] require-file package action makes 0 size file - 1.1 RC1
Kirjoitti: Sheepy - marraskuu 11, 2005, 10:36:22 IP
Opps. Thanks. Sorry I failed to find it with the search function which is why I'm reporting it.  I still can't find it.  Actually is there a known bugs list?
Otsikko: Re: [Bug] require-file package action makes 0 size file - 1.1 RC1
Kirjoitti: dtm.exe - marraskuu 11, 2005, 10:38:00 IP
Lainaus käyttäjältä: Sheepy - marraskuu 11, 2005, 10:36:22 IP
Opps. Thanks. Sorry I failed to find it with the search function which is why I'm reporting it.  I still can't find it.  Actually is there a known bugs list?

There's a bug list accessible to team members and developers, but not to the general public, I'm afraid.
Otsikko: Re: [Bug] require-file package action makes 0 size file - 1.1 RC1
Kirjoitti: Trekkie101 - marraskuu 12, 2005, 06:02:02 AP
Lainaus käyttäjältä: Sheepy - marraskuu 11, 2005, 10:36:22 IP
Opps. Thanks. Sorry I failed to find it with the search function which is why I'm reporting it.  I still can't find it.  Actually is there a known bugs list?
hehe a quick cheat, find a CVS board somewhere, one that gets updated, some of the team members do this and read the changelog.txt its viewable as its only a text file if your intrested.