Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Bug #11564 baseinstalldir not changeable
Submitted: 2007-07-08 10:59 UTC
From: cweiske Assigned:
Status: Feedback Package: PEAR_PackageFileManager_Cli (version 0.2.1)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 16 + 5 = ?

 
 [2007-07-08 10:59 UTC] cweiske (Christian Weiske)
Description: ------------ When loading an existing package.xml file, I cannot change the autodetected baseinstalldir. There should be an option to completely not use baseinstalldir. Test script: --------------- $ pfm . PEAR Package File Manager Command Line Tool Enter the base install directory 1) HTML/Template Please choose an option: 1 PEAR Package File Manager Command Line Tool 1. Package name [HTML_Template_PHPLIB] 2. Channel/URI [Channel: pear.php.net] 3. Summary [preg_* based template system.] 4. Description [The popular Template system from PHPL...] 5. Maintainers 6. Version [Release: 1.3.3 API: 1.3.3] 7. Stability [Release: stable API: stable] 8. License [LGPL] 9. Notes [- method to retrieve last error] 10. Dependencies 11. Tasks 12. Regenerate contents 13. Echo package file to stdout 14. Save & Quit 15. Quit without saving (ctrl-c) Please choose an option from the menu: 15

Comments

 [2007-07-09 07:53 UTC] shangxiao (David Sanders)
This one's a bit tricky. For one thing, PEAR_PackageFileManager throws a PEAR_Error when you don't specify or leave the baseinstalldir blank. The other thing is that different files have different baseinstalldirs. When editing an existing package file, I leave the existing file attributes as they are (by leaving clearcontents set to false). I'll add the ability to choose an existing baseinstalldir or type your own, but currently this will only affect new files. I plan to also add the ability to edit each individual file's attributes, in which case pfm needs to be able to remember which files have been manually changed between saves. When this ability is added then you can change the baseinstalldir on a per file basis.
 [2007-10-01 08:57 UTC] cweiske (Christian Weiske)
Ok.
 [2012-02-06 17:57 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Feedback
Most commonly for me, I find I renamed dirs and need to change the baseinstalldir to "/". I've added fixes to achieve that - do that help/make this closable?