Change-Id: I30d71f8a23aacbf97d2322f5f3b0d7b5283abc13
}
my_system("> $order_dir/.repo.cache.remote");
foreach my $repo (@package_repos) {
- my $cmd = "$build_dir/createrepomddeps --cachedir=$cache_dir $repo >> $order_dir/.repo.cache.remote ";
+ my $cmd = "";
+ if ($repo =~ /^\// && ! -e "$repo/repodata/repomd.xml") {
+ $cmd = "$build_dir/createrpmdeps $repo >> $order_dir/.repo.cache.remote ";
+ } else {
+ $cmd = "$build_dir/createrepomddeps --cachedir=$cache_dir $repo >> $order_dir/.repo.cache.remote ";
+ }
debug($cmd);
if ( my_system($cmd) == 0 ) {
my_system("echo D: >> $order_dir/.repo.cache.remote");