summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-21 16:36:44 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-21 16:36:44 +0000
commit5a1b56da74d145611cb8d195170dc8b42e95ad31 (patch)
tree11ec0b73d4ad2338ca9fb1a9724778ba018c2752
parenta0c7a708088b5cd9cd8ffebb30267f67371d2f3f (diff)
downloadmgaonline-5a1b56da74d145611cb8d195170dc8b42e95ad31.tar
mgaonline-5a1b56da74d145611cb8d195170dc8b42e95ad31.tar.gz
mgaonline-5a1b56da74d145611cb8d195170dc8b42e95ad31.tar.bz2
mgaonline-5a1b56da74d145611cb8d195170dc8b42e95ad31.tar.xz
mgaonline-5a1b56da74d145611cb8d195170dc8b42e95ad31.zip
(get_stale_upgrade_filename) actually introduced it (forgot to commit along previous commit)
-rw-r--r--mdkonline.pm6
1 files changed, 5 insertions, 1 deletions
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);