PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR_PackageFileManager

PEAR_PackageFileManager takes an existing v1 package.xml file and updates it with a new filelist and changelog

This package is unmaintained.

Download latest release 1.7.2 (there might be newer Composer installable version)

License: New BSD License

Description

This package revolutionizes the maintenance of PEAR packages. With a few parameters,
the entire v1 package.xml is automatically updated with a listing of all files in a package.

Use PEAR_PackageFileManager2 for v2 package.xml which is what channels require.

Features include
- can detect PHP and extension dependencies using PHP_CompatInfo
- reads in an existing package.xml file, and only changes the release/changelog
- a plugin system for retrieving files in a directory. Currently four plugins
exist, one for standard recursive directory content listing, one that
reads the CVS/Entries files and generates a file listing based on the contents
of a checked out CVS repository, one that reads Subversion entries files, and
one that queries a Perforce repository.
- incredibly flexible options for assigning install roles to files/directories
- ability to ignore any file based on a * ? wildcard-enabled string(s)
- ability to include only files that match a * ? wildcard-enabled string(s)
- ability to manage dependencies
- can output the package.xml in any directory, and read in the package.xml
file from any directory.
- can specify a different name for the package.xml file

PEAR_PackageFileManager is fully unit tested.

Documentation

Manual

Maintainers

Dependencies

Required

Optional

Releases

Bugs

IDStatusTypeVersionDateSummary
#8ClosedBug2003-09-14notices if a package has no dependencies
#155ClosedBug2003-10-26do a warning if CVS/* is packaged
#260ClosedBug2003-11-16.cvsignore files should be excluded from package file lists
#261ClosedBug2003-11-16package.xml files shouldn't be included in the package file list
#525ClosedBug2004-01-05<provides> tag and md5sum attribute not needed
#527ClosedBug2004-01-06shorten the file tag attributes
#733ClosedBug2004-02-11php dep incorrectly generated
#797ClosedBug2004-02-19Warning fix
#1217ClosedBug2004-04-15PEAR_PackageFileManager_File::dirList does not return all items it should retur
#1277ClosedBug2004-04-24Does not remove dependencies from package.xml when addDependency() is removed
#1287ClosedReq2004-04-26Added optional support to use PHP_CompatInfo for PHP/Extension deps
#2367ClosedBug2004-09-21warning when package has no files in package root dir
#2573ClosedBug2004-10-20Documentation suggest wrong plattform pattern
#2874ClosedReq2004-12-02add addGlobalReplacement() method
#3696ClosedBug2005-03-03PHP SAPI check in debugPackageFile() not reliable, use php_sapi_name() instead
#3747ClosedReq2005-03-08getOptions() method
#4003ClosedBug2005-03-30importOptions() won't work until setOptions() is called
#4267BogusBug2005-05-03PEAR 1.4.0alpha dependency
#4478ClosedBug2005-05-30Notice error on File.php (generator)
#4499ClosedBug2005-06-011.6.0a1: Generated package2.xml does not carry over changelog
#4525ClosedBug2005-06-04Update inline package generation example
#4526BogusReq2005-06-04different levels of strictness enforced on package validation
#4604ClosedBug2005-06-16validatePackageInfo implementation error
#4743ClosedBug2005-07-04PHP 5.1 pass-by-reference error
#5006DuplicateBug2005-08-05Message "Only variables can be passed by reference ... File.php line 110"
#5072ClosedBug2005-08-11If channel not registered, addMaintainers() fails?
#5243ClosedBug2005-08-30importOptions() won't work with 2nd arg filled
#5253Wont fixBug2005-08-31Solution to make PFM 1.6.0 compatible with PEAR 1.3.x
#5384No FeedbackReq2005-09-13Add directory and wildcard support for installexceptions option
#5874ClosedBug2005-11-05Fails generation on missing "notes" element without error message.
#6028ClosedBug2005-11-21incompatability with php5
#6037ClosedBug2005-11-22Directories named "file" make problems
#6175ClosedBug2005-12-06incomplete error message with sapi interface only
#6191ClosedBug2005-12-08notice error with wrong 'pathtopackagefile' option
#6357ClosedBug2005-12-28Notice Errors with PFM2 1.6.0a4 and CVS plugin
#6379ClosedBug2005-12-31Generic mapping role (*=>data) should exist for PFM1 and PFM2
#6434ClosedBug2006-01-07files list validation error with simpleouput = false on PFM160a4
#6436BogusBug2006-01-07PFM2::setDate() is useless
#6507ClosedBug2006-01-17deps are lost after importing a package v1
#6593BogusBug2006-01-26Bug in example, requires ErrorStack callback method to be set
#6594ClosedBug2006-01-26export compatible V1 lost changelog when import existing package v2
#6843ClosedBug1.6.0a62006-02-20don't rely on XML/Tree (PEAR_PackageFileManager_Svn)
#7393ClosedBug1.6.0a72006-04-13addGlobalReplacement() error reporting throws error
#7496ClosedBug1.6.0a72006-04-26simpleoutput ignores installexceptions option
#7769ClosedBug1.5.22006-05-31writePackageFile()/debugPackageFile() return false
#8825ClosedBug1.5.32006-10-01Warning when running package.php
#9022Wont fixBug1.6.0b42006-10-14PEAR_PackageFileManager_File::getFileList() trims characters wrongly
#9559ClosedDoc1.6.02006-12-06files not included under certain conditions
#9560ClosedBug1.6.02006-12-06PPFM1 constants used in PPFM2
#10409ClosedBug1.6.02007-03-18Subversion 1.4.x entries files not supported
#10410ClosedBug1.6.02007-03-18SVN module passes arguments by reference
#10490ClosedBug1.6.02007-03-25Bad error handling with some XML errors
#10945ClosedReq1.6.02007-05-05Ignore should take directory into consideration
#10971ClosedBug1.6.02007-05-07Missing error check
#10995ClosedBug2007-05-09addPostInstallTask() should validate incoming tasks
#11048Wont fixBug1.6.02007-05-15Reads old package.xml unneccessary
#12023ClosedBug1.6.12007-09-11substr() miss around $package_directory in getFileList()
#12202ClosedBug1.6.12007-10-08SVN 'entries' file parser (SVN >= 1.4) sometimes omits files
#12410BogusBug1.6.22007-11-09setDate and setTime doesnt work
#12504BogusBug1.6.32007-11-21baseinstalldir cannot be set to empty string
#12820ClosedReqCVS2008-01-03Add glob functionality to PackageFileManager::addReplacement()
#12932ClosedReq1.6.32008-01-19.in files should have the 'src' role
#13312ClosedBug1.6.32008-03-05Please specify SimpleXML extension dependency
#14882DuplicateBugCVS2008-10-26Fatal error: Cannot pass parameter 1 by reference
#14960ClosedBugCVS2008-11-04Unit tests - undefined variable $notice
#19015ClosedBugSVN2011-11-14remove error_reporting (for PEAR QA team)
#23765OpenBug1.7.22018-09-02Contains deprecated each()