aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2005-12-13 18:35:18 +0000
committerFlorent Villard <warly@mandriva.com>2005-12-13 18:35:18 +0000
commit3098f0048f78fe3f8119573bdc89e1ba5b3da42d (patch)
treefcaab3d6b9f8b3423d96003135d8e626ac197156
parent0ff5bc3e24891ed2055f2694a9885a017b24df09 (diff)
downloadiurt-3098f0048f78fe3f8119573bdc89e1ba5b3da42d.tar
iurt-3098f0048f78fe3f8119573bdc89e1ba5b3da42d.tar.gz
iurt-3098f0048f78fe3f8119573bdc89e1ba5b3da42d.tar.bz2
iurt-3098f0048f78fe3f8119573bdc89e1ba5b3da42d.tar.xz
iurt-3098f0048f78fe3f8119573bdc89e1ba5b3da42d.zip
Add /mnt/BIG/dis path in the config file
-rwxr-xr-xiurt23
1 files changed, 2 insertions, 1 deletions
diff --git a/iurt2 b/iurt2
index 1ff2f34..17437bf 100755
--- a/iurt2
+++ b/iurt2
@@ -54,6 +54,7 @@ $config->{supported_arch} ||= ['i586', 'x86_64'];
$config->{upload} ||= "$HOME/uploads/";
$config->{local_home} ||= "$HOME";
$config->{base_dir} ||= "$HOME/uploads/";
+$config->{repository} ||= "/mnt/BIG/dis/";
$config->{base_dir} .= $distro_version;
$config->{base_dir} =~ s/community//g;
@@ -114,7 +115,7 @@ my %big;
my %srpm_version;
my @wrong_rpm;
foreach my $arch (@{$config->{supported_arch}}) {
- my $rpms_dir = "/mnt/BIG/dis/$distro_version/$arch/media/$media/";
+ my $rpms_dir = "$config->{repository}/$distro_version/$arch/media/$media/";
print "iurt: checking current packages in $rpms_dir\n";
opendir my $rpmdir, $rpms_dir or next;
foreach my $rpm (readdir $rpmdir) {