eighty4 wrote:
> Was thinking it would be fun to make HPM work. After plying with it
> for a while it seems to be working ok except for a couple of problems.
> 
> * habaripackage.php (line 187) adds an extra /. The . '/' . could be
> removed.
> ( $this->archive->unpack( $file, HABARI_PATH . '/' . $this-
>> install_profile[$file], 0777 );  )

sounds good. Would have to verify that the path stored in the "install 
profile" starts with a slash.

> * Since hpm saves the actual plugins in /plugins it needs to be
> writable by the web user

yes. it puts everything in user/plugins/. HPM does VERY basic 
permissions checks, but needs to be done properly. (see 3 points below)

> * hpm uses a slice() instead of explode, forgot where just do a grep
> for it.

not sure what that means.

> * When updating the repo list hpm should update it's plugin database.

Indeed. Never thought of that, but should be easy to do. 
HabariPackages::update() i think.

> * Doesn't seem to check if a plugin already exist. Fails the install
> since the plugins folder isn't writable.

This whole part of the install (checking perms and existing files) was 
not coded yet. It all needs routines to check this type of thing. 
Possibly wrapped in a File Functions class or something.

> * Doesn't seem to actually check archive_md5.

It does, but it's commented out since all the md5sum's are out of date.

Also note that the plugin directory on hp.o should only list the plugins 
in the tags folders, as those are the released ones. Currently it uses 
trunk and causes the MD5SUM's to be off.

> * Upgrade only uses version number? Gave me a white screen followed by
> errors.

Not quite sure what you mean here.

I believe I wrote a custom version checker to accommodate the 
shortcomings of the php version check function thing. But upgrades are 
based on the version numbers.

> Since the current repo only is for 0.6.x and doesn't even seem to work
> for that I made my own small repo. Just copy/paste and add it as a
> repo.

you can also install the plugin_directory plugin which will generate the 
repo for you.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to