summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index f89e819e..8f833094 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -113,6 +113,12 @@ sub userdir {
$dir;
}
+sub is_temporary_file {
+ my ($urpm, $f) = @_;
+
+ begins_with($f, $urpm->{cachedir});
+}
+
sub set_files {
my ($urpm, $urpmi_root) = @_;
my %h = (