#!/usr/bin/perl -w

use strict;
use warnings;

use Carp;
use RPM qw/evrcmp/;

use Source::Repository::Mass;
use Source::Repository::Matcher;
use Source::Repository::Matcher::Py3CopyCat;
use Source::Repository::Mass::Transform::Embedded;
use RPM::Source::Transformation::GenericTransformationSet;
$RPM::Source::Transformation::Factory::RaiseRelease::nextrel='none';
$RPM::Source::Transformation::Factory::RaiseRelease::defaultchangelog='- python3 copycat update from python2 module';

#our @ISA = qw/Source::Repository::Mass::Transform/;

our $verbose=0;

$Source::Repository::Mass::strategy='newer';

my ($ALTROOT)= grep {-d $_} qw'/var/ftp/pub/Linux/ALT /var/ftp/pub/ALTLinux /ALT ALT /srv/public/mirror';
$DESTPATH="~/hasher/repo/SRPMS.hasher:~/hasher/repo/SRPMS.hasher.S";
$DESTPATH .= ":$ALTROOT/Sisyphus/files/SRPMS:$ALTROOT/py3copycat/Sisyphus/files/SRPMS:$ALTROOT/autoimports/Sisyphus/files/SRPMS" if $ALTROOT;
$ORIGINPATH = "$ALTROOT/Sisyphus/files/SRPMS:$ALTROOT/autoimports/Sisyphus/files/SRPMS" if $ALTROOT;

my $convert=Source::Repository::Mass::Transform::Embedded->new();
$convert->process();
