pkg_is_file_or_url package [ variable ]
checks for existence of package and determines wether it is a file or url and sets $pkg_pkgtype to url or file accordingly.First check if it is a file, if not, if it starts with http:// or ftp:// it is considered as url.The type is stored in variable if given.In case none of conditions are met with nonzero value is returned.