From 5a1b56da74d145611cb8d195170dc8b42e95ad31 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 21 Oct 2008 16:36:44 +0000 Subject: (get_stale_upgrade_filename) actually introduced it (forgot to commit along previous commit) --- mdkonline.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mdkonline.pm b/mdkonline.pm index 0b381ca0..2bd1756e 100644 --- a/mdkonline.pm +++ b/mdkonline.pm @@ -29,13 +29,17 @@ use lib qw(/usr/lib/libDrakX); use common; our @ISA = qw(Exporter); -our @EXPORT = qw(fork_exec get_banner); +our @EXPORT = qw(fork_exec get_banner get_stale_upgrade_filename); use log; my $release_file = find { -f $_ } '/etc/mandriva-release', '/etc/mandrakelinux-release', '/etc/mandrake-release', '/etc/redhat-release'; +sub get_stale_upgrade_filename() { + '/var/lib/urpmi/stale_upgrade_in_progress'; +} + sub get_release() { my ($r) = cat_($release_file) =~ /release\s+(\S+)/; ($r); -- cgit v1.2.1