my_system("cp -r '$pkg_path'/'$exported_key' '$pkg_path'/'$cache_key'");
my_system("cp -f '$pkg_path'/cache/'$exported_key' '$pkg_path'/cache/'$cache_key'");
+ # Remove old source rpm packages to build again, or depanneur
+ # will skip packages with src.rpm exists
+ # Same operation as it in write_cache()
+ my $src_rpm = "$srpm_repo_path/$cache_key.src.rpm";
+ if (-f "$src_rpm") {
+ my_system("rm -f '$src_rpm'");
+ }
+
} else {
# if it's failed to write cache
unless (write_cache($cache_key, $val, $base, $spec_file, $packaging_dir, $upstream_branch, $upstream_tag)) {