mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
Added checkfile class method.
This commit is contained in:
@@ -155,6 +155,20 @@ having to write your own new() method.
|
||||
|
||||
sub init {}
|
||||
|
||||
=item checkfile
|
||||
|
||||
This is a class method. Pass it a filename, and it will return true if it
|
||||
looks like the file is a package of the type handled by the class.
|
||||
|
||||
=cut
|
||||
|
||||
sub checkfile {
|
||||
my $this=shift;
|
||||
my $file=shift;
|
||||
|
||||
return ''; # children override this.
|
||||
}
|
||||
|
||||
=item install
|
||||
|
||||
Simply installs a package file. The filename is passed on standard input.
|
||||
|
||||
Reference in New Issue
Block a user