% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
Devscripts::Uscan::WatchLine - watch line object for uscan
Uscan class to parse watchfiles.
Launches all needed methods in this order: parse(), search(), get_upstream_url(), get_newfile_base(), cmp_versions(), download_file_and_sig(), mkorigtargz(), clean()
If one method returns a non 0 value, it stops and return this error code.
Parse the line and return 0 if nothing bad happen.
It populates $self->parse_result accessor with a hash that contains the following keys:
Search new file link and new version on the remote site using either:
It populates $self->search_result hash ref with the following keys:
Transform newfile/newversion into upstream url using either:
Result is stored in $self->upstream_url accessor.
Calculates the filename (filenamemangled) for downloaded file using either:
Result is stored in $self->newfile_base accessor.
Compare available and local versions.
Download file and, if available and needed, signature files.
Call mk_origtargz to build source tarball.
Clean temporary files using either:
uscan, Devscripts::Uscan::WatchFile, Devscripts::Uscan::Config
uscan was originally written by Christoph Lameter <clameter@debian.org> (I believe), modified by Julian Gilbey <jdg@debian.org>. HTTP support was added by Piotr Roszatycki <dexter@debian.org>. uscan was rewritten in Perl by Julian Gilbey. Xavier Guimard <yadd@debian.org> rewrote uscan in object oriented Perl.
Copyright 2002-2006 by Julian Gilbey <jdg@debian.org>, 2018 by Xavier Guimard <yadd@debian.org>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.