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.
This is a known bug for RC1 and it will be fixed for the next release.
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?
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.
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.