diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-03-03 22:45:23 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-03-03 22:45:23 +0000 |
commit | f9bc68f05097e6a4cb9c81dc53c3f46e215f1684 (patch) | |
tree | 8ad6e6ebeae9eec5da55a5a4f74c378ac63cc880 | |
parent | 87ccf7438dc42b7f611ecabfaf36ddfe29e345da (diff) | |
download | urpmi-f9bc68f05097e6a4cb9c81dc53c3f46e215f1684.tar urpmi-f9bc68f05097e6a4cb9c81dc53c3f46e215f1684.tar.gz urpmi-f9bc68f05097e6a4cb9c81dc53c3f46e215f1684.tar.bz2 urpmi-f9bc68f05097e6a4cb9c81dc53c3f46e215f1684.tar.xz urpmi-f9bc68f05097e6a4cb9c81dc53c3f46e215f1684.zip |
correctly name function since it's outside of its module
-rw-r--r-- | urpm/bug_report.pm | 2 | ||||
-rw-r--r-- | urpm/media.pm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/urpm/bug_report.pm b/urpm/bug_report.pm index d6aeb492..6e243252 100644 --- a/urpm/bug_report.pm +++ b/urpm/bug_report.pm @@ -30,7 +30,7 @@ sub write_urpmdb { foreach (@{$urpm->{media}}) { if (urpm::media::is_valid_medium($_)) { system('cp', urpm::media::any_synthesis($urpm, $_), - "$bug_report_dir/" . urpm::media::_synthesis($_)) == 0 or $urpm->{fatal}(1, "failed to copy $_->{name} synthesis"); + "$bug_report_dir/" . urpm::media::synthesis($_)) == 0 or $urpm->{fatal}(1, "failed to copy $_->{name} synthesis"); } } #- fake configuration written to convert virtual media on the fly. diff --git a/urpm/media.pm b/urpm/media.pm index 7bee8551..b0bbeb89 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -301,14 +301,14 @@ sub _url_with_synthesis { } -sub _synthesis { +sub synthesis { my ($medium) = @_; $medium->{name} && "synthesis.hdlist.$medium->{name}.cz"; } sub statedir_synthesis { my ($urpm, $medium) = @_; - "$urpm->{statedir}/" . _synthesis($medium); + "$urpm->{statedir}/" . synthesis($medium); } sub statedir_media_info_file { my ($urpm, $medium, $prefix, $suffix) = @_; |