diff options
Diffstat (limited to 'zarb-ml/mageia-dev/attachments/20121029')
18 files changed, 344 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/attachments/20121029/2f1a9100/attachment-0001.bin b/zarb-ml/mageia-dev/attachments/20121029/2f1a9100/attachment-0001.bin new file mode 100644 index 000000000..7796d4ae5 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/2f1a9100/attachment-0001.bin @@ -0,0 +1,26 @@ +Index: urpmi +=================================================================== +--- urpmi (révision 5344) ++++ urpmi (copie de travail) +@@ -266,8 +266,19 @@ + urpm::set_env($urpm, $env); + } else { + if ($< != 0 && !$options{debug__do_not_install}) { +- #- need to be root if binary rpms are to be installed +- $auto_select || @names || @files and $urpm->{fatal}(1, N("Only superuser is allowed to install packages")); ++ if ($no_install) { ++ #- writable download directory needed ++ $urpm->{fatal}( ++ 1, ++ N("Only superuser is allowed to use default download directory") ++ ) if ! $urpm->{options}{'download-all'}; ++ } else { ++ #- root privileges needed to install binary packages ++ $urpm->{fatal}( ++ 1, ++ N("Only superuser is allowed to install packages") ++ ) if $auto_select || @names || @files; ++ } + } + } + diff --git a/zarb-ml/mageia-dev/attachments/20121029/2f1a9100/attachment.bin b/zarb-ml/mageia-dev/attachments/20121029/2f1a9100/attachment.bin new file mode 100644 index 000000000..7796d4ae5 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/2f1a9100/attachment.bin @@ -0,0 +1,26 @@ +Index: urpmi +=================================================================== +--- urpmi (révision 5344) ++++ urpmi (copie de travail) +@@ -266,8 +266,19 @@ + urpm::set_env($urpm, $env); + } else { + if ($< != 0 && !$options{debug__do_not_install}) { +- #- need to be root if binary rpms are to be installed +- $auto_select || @names || @files and $urpm->{fatal}(1, N("Only superuser is allowed to install packages")); ++ if ($no_install) { ++ #- writable download directory needed ++ $urpm->{fatal}( ++ 1, ++ N("Only superuser is allowed to use default download directory") ++ ) if ! $urpm->{options}{'download-all'}; ++ } else { ++ #- root privileges needed to install binary packages ++ $urpm->{fatal}( ++ 1, ++ N("Only superuser is allowed to install packages") ++ ) if $auto_select || @names || @files; ++ } + } + } + diff --git a/zarb-ml/mageia-dev/attachments/20121029/326080dc/attachment-0001.asc b/zarb-ml/mageia-dev/attachments/20121029/326080dc/attachment-0001.asc new file mode 100644 index 000000000..859b37db0 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/326080dc/attachment-0001.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iD8DBQBQjpWfT1rWTfpocyQRAj0iAKCI1BN22VYqL5zZ4YuqRCdFs/njlwCg2DDW +ZmxquABl8OMRMUCJssNYeJ8= +=rW5a +-----END PGP SIGNATURE----- diff --git a/zarb-ml/mageia-dev/attachments/20121029/326080dc/attachment.asc b/zarb-ml/mageia-dev/attachments/20121029/326080dc/attachment.asc new file mode 100644 index 000000000..859b37db0 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/326080dc/attachment.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iD8DBQBQjpWfT1rWTfpocyQRAj0iAKCI1BN22VYqL5zZ4YuqRCdFs/njlwCg2DDW +ZmxquABl8OMRMUCJssNYeJ8= +=rW5a +-----END PGP SIGNATURE----- diff --git a/zarb-ml/mageia-dev/attachments/20121029/444d360c/attachment-0001.asc b/zarb-ml/mageia-dev/attachments/20121029/444d360c/attachment-0001.asc new file mode 100644 index 000000000..edc26d8d3 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/444d360c/attachment-0001.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.12 (GNU/Linux) + +iEYEARECAAYFAlCPOlYACgkQMYWkoYueEqtMHQCgz8nKtBHCA00fwEjTLUaP2Azr +RNYAnR+ulETwPFTOkHRUWWWXc9jov3a0 +=wmwA +-----END PGP SIGNATURE----- diff --git a/zarb-ml/mageia-dev/attachments/20121029/444d360c/attachment.asc b/zarb-ml/mageia-dev/attachments/20121029/444d360c/attachment.asc new file mode 100644 index 000000000..edc26d8d3 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/444d360c/attachment.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.12 (GNU/Linux) + +iEYEARECAAYFAlCPOlYACgkQMYWkoYueEqtMHQCgz8nKtBHCA00fwEjTLUaP2Azr +RNYAnR+ulETwPFTOkHRUWWWXc9jov3a0 +=wmwA +-----END PGP SIGNATURE----- diff --git a/zarb-ml/mageia-dev/attachments/20121029/5f7060e8/attachment-0001.asc b/zarb-ml/mageia-dev/attachments/20121029/5f7060e8/attachment-0001.asc new file mode 100644 index 000000000..3f54191f3 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/5f7060e8/attachment-0001.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iD8DBQBQjkFCT1rWTfpocyQRAtgKAKCZLaxh0RTOw54PuSB2wWgW9JNrnwCghU1m +Qz97tGZuk1YeKoEmojMWqkk= +=/Jz5 +-----END PGP SIGNATURE----- diff --git a/zarb-ml/mageia-dev/attachments/20121029/5f7060e8/attachment.asc b/zarb-ml/mageia-dev/attachments/20121029/5f7060e8/attachment.asc new file mode 100644 index 000000000..3f54191f3 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/5f7060e8/attachment.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iD8DBQBQjkFCT1rWTfpocyQRAtgKAKCZLaxh0RTOw54PuSB2wWgW9JNrnwCghU1m +Qz97tGZuk1YeKoEmojMWqkk= +=/Jz5 +-----END PGP SIGNATURE----- diff --git a/zarb-ml/mageia-dev/attachments/20121029/b874af54/attachment-0001.obj b/zarb-ml/mageia-dev/attachments/20121029/b874af54/attachment-0001.obj new file mode 100644 index 000000000..96257e621 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/b874af54/attachment-0001.obj @@ -0,0 +1,13 @@ +diff --git a/urpmi b/urpmi +index f515f94..10bca45 100755 +--- a/urpmi ++++ b/urpmi +@@ -260,7 +260,7 @@ if ($bug) { + if ($env) { + urpm::set_env($urpm, $env); + } else { +- if ($< != 0 && !$options{debug__do_not_install}) { ++ if ($< != 0 && !$options{debug__do_not_install} && !$no_install) { + #- need to be root if binary rpms are to be installed + $auto_select || @names || @files and $urpm->{fatal}(1, N("Only superuser is allowed to install packages")); + }
\ No newline at end of file diff --git a/zarb-ml/mageia-dev/attachments/20121029/b874af54/attachment-0002.obj b/zarb-ml/mageia-dev/attachments/20121029/b874af54/attachment-0002.obj new file mode 100644 index 000000000..5dc1fef07 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/b874af54/attachment-0002.obj @@ -0,0 +1,91 @@ +commit 54a0e7a4e69284026224eb7602ffc134b2bed169 +Author: tv <thierry.vignaud@gmail.com> +Date: Mon Oct 29 15:55:57 2012 +0100 + + add --download-dir option + +diff --git a/NEWS b/NEWS +index cd3abbe..ce32b83 100644 +--- a/NEWS ++++ b/NEWS +@@ -1,3 +1,8 @@ ++- urpmi.cfg: ++ o add download-dir option ++- urpmi: ++ o add --download-dir option ++ + Version 7.10 - 17 October 2012, by Thierry Vignaud + + - do not offer to remove DKMS modules for current kernel (mga#5092) +diff --git a/pod/5/urpmi.cfg.pod b/pod/5/urpmi.cfg.pod +index baf35fb..515d462 100644 +--- a/pod/5/urpmi.cfg.pod ++++ b/pod/5/urpmi.cfg.pod +@@ -94,6 +94,13 @@ installing into the specified directory. If you want to use the default + location, assign an empty string to it (WARNING! "yes" or "1" are NOT the + options you really want to use here!) + ++=item B<download-dir> ++ ++Same as B<--download-dir> option for urpmi: specify to download remote packages ++before installing them into the specified directory. If you want to use the default ++location, assign an empty string to it (WARNING! "yes" or "1" are NOT the ++options you really want to use here!) ++ + =item B<downloader> + + Specify which download program to use: B<wget> or B<curl>. +diff --git a/pod/8/urpmi.pod b/pod/8/urpmi.pod +index c9fd27a..4b2e39e 100644 +--- a/pod/8/urpmi.pod ++++ b/pod/8/urpmi.pod +@@ -265,6 +265,13 @@ option is set, urpmi will first download all the needed packages and proceed + to install them if it managed to download them all. You can optionally + specify a directory where the files should be downloaded (default is /var/cache/urpmi which could be too small to hold all the files). + ++=item B<--download-dir> I<dest-dir> ++ ++By default, urpmi will download packages in a system directory (default is ++/var/cache/urpmi). This can be problematic when someone just want to download ++packages as user witout installing them. When this option is set, urpmi ++download the needed packages in the specified directory. ++ + =item B<--downloader> I<program name> + + Use a specific program for downloading distant files via http or ftp. +diff --git a/urpm/args.pm b/urpm/args.pm +index 4120155..01e99f4 100644 +--- a/urpm/args.pm ++++ b/urpm/args.pm +@@ -128,6 +128,7 @@ my %options_spec = ( + + 'metalink!' => sub { $urpm->{options}{metalink} = $_[1] }, + 'download-all:s' => sub { $urpm->{options}{'download-all'} = $_[1] }, ++ 'download-dir=s' => sub { $urpm->{options}{cachedir} = $_[1] }, + # deprecated in favor of --downloader xxx + wget => sub { $urpm->{options}{downloader} = 'wget' }, + curl => sub { $urpm->{options}{downloader} = 'curl' }, +diff --git a/urpm/cfg.pm b/urpm/cfg.pm +index 75487c9..df00dc3 100644 +--- a/urpm/cfg.pm ++++ b/urpm/cfg.pm +@@ -160,6 +160,7 @@ sub load_config_raw { + |retry + |default-media + |download-all ++ |download-dir + |tune-rpm + |(?:curl|rsync|wget|prozilla|aria2)-options + )\s*:\s*['"]?(.*?)['"]?$/x) { +diff --git a/urpmi b/urpmi +index cf6f8c0..f515f94 100755 +--- a/urpmi ++++ b/urpmi +@@ -108,6 +108,7 @@ sub usage () { + to install a chroot with --root option. + ") . N(" --metalink - generate and use a local metalink. + ") . N(" --download-all - download all needed packages before trying to install them ++") . N(" --download-dir - download the needed packages in the specified directory + ") . N(" --downloader - program to use to retrieve distant files. + known programs: %s + ", join(', ', urpm::download::ftp_http_downloaders()))
\ No newline at end of file diff --git a/zarb-ml/mageia-dev/attachments/20121029/b874af54/attachment-0003.obj b/zarb-ml/mageia-dev/attachments/20121029/b874af54/attachment-0003.obj new file mode 100644 index 000000000..96257e621 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/b874af54/attachment-0003.obj @@ -0,0 +1,13 @@ +diff --git a/urpmi b/urpmi +index f515f94..10bca45 100755 +--- a/urpmi ++++ b/urpmi +@@ -260,7 +260,7 @@ if ($bug) { + if ($env) { + urpm::set_env($urpm, $env); + } else { +- if ($< != 0 && !$options{debug__do_not_install}) { ++ if ($< != 0 && !$options{debug__do_not_install} && !$no_install) { + #- need to be root if binary rpms are to be installed + $auto_select || @names || @files and $urpm->{fatal}(1, N("Only superuser is allowed to install packages")); + }
\ No newline at end of file diff --git a/zarb-ml/mageia-dev/attachments/20121029/b874af54/attachment.obj b/zarb-ml/mageia-dev/attachments/20121029/b874af54/attachment.obj new file mode 100644 index 000000000..5dc1fef07 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/b874af54/attachment.obj @@ -0,0 +1,91 @@ +commit 54a0e7a4e69284026224eb7602ffc134b2bed169 +Author: tv <thierry.vignaud@gmail.com> +Date: Mon Oct 29 15:55:57 2012 +0100 + + add --download-dir option + +diff --git a/NEWS b/NEWS +index cd3abbe..ce32b83 100644 +--- a/NEWS ++++ b/NEWS +@@ -1,3 +1,8 @@ ++- urpmi.cfg: ++ o add download-dir option ++- urpmi: ++ o add --download-dir option ++ + Version 7.10 - 17 October 2012, by Thierry Vignaud + + - do not offer to remove DKMS modules for current kernel (mga#5092) +diff --git a/pod/5/urpmi.cfg.pod b/pod/5/urpmi.cfg.pod +index baf35fb..515d462 100644 +--- a/pod/5/urpmi.cfg.pod ++++ b/pod/5/urpmi.cfg.pod +@@ -94,6 +94,13 @@ installing into the specified directory. If you want to use the default + location, assign an empty string to it (WARNING! "yes" or "1" are NOT the + options you really want to use here!) + ++=item B<download-dir> ++ ++Same as B<--download-dir> option for urpmi: specify to download remote packages ++before installing them into the specified directory. If you want to use the default ++location, assign an empty string to it (WARNING! "yes" or "1" are NOT the ++options you really want to use here!) ++ + =item B<downloader> + + Specify which download program to use: B<wget> or B<curl>. +diff --git a/pod/8/urpmi.pod b/pod/8/urpmi.pod +index c9fd27a..4b2e39e 100644 +--- a/pod/8/urpmi.pod ++++ b/pod/8/urpmi.pod +@@ -265,6 +265,13 @@ option is set, urpmi will first download all the needed packages and proceed + to install them if it managed to download them all. You can optionally + specify a directory where the files should be downloaded (default is /var/cache/urpmi which could be too small to hold all the files). + ++=item B<--download-dir> I<dest-dir> ++ ++By default, urpmi will download packages in a system directory (default is ++/var/cache/urpmi). This can be problematic when someone just want to download ++packages as user witout installing them. When this option is set, urpmi ++download the needed packages in the specified directory. ++ + =item B<--downloader> I<program name> + + Use a specific program for downloading distant files via http or ftp. +diff --git a/urpm/args.pm b/urpm/args.pm +index 4120155..01e99f4 100644 +--- a/urpm/args.pm ++++ b/urpm/args.pm +@@ -128,6 +128,7 @@ my %options_spec = ( + + 'metalink!' => sub { $urpm->{options}{metalink} = $_[1] }, + 'download-all:s' => sub { $urpm->{options}{'download-all'} = $_[1] }, ++ 'download-dir=s' => sub { $urpm->{options}{cachedir} = $_[1] }, + # deprecated in favor of --downloader xxx + wget => sub { $urpm->{options}{downloader} = 'wget' }, + curl => sub { $urpm->{options}{downloader} = 'curl' }, +diff --git a/urpm/cfg.pm b/urpm/cfg.pm +index 75487c9..df00dc3 100644 +--- a/urpm/cfg.pm ++++ b/urpm/cfg.pm +@@ -160,6 +160,7 @@ sub load_config_raw { + |retry + |default-media + |download-all ++ |download-dir + |tune-rpm + |(?:curl|rsync|wget|prozilla|aria2)-options + )\s*:\s*['"]?(.*?)['"]?$/x) { +diff --git a/urpmi b/urpmi +index cf6f8c0..f515f94 100755 +--- a/urpmi ++++ b/urpmi +@@ -108,6 +108,7 @@ sub usage () { + to install a chroot with --root option. + ") . N(" --metalink - generate and use a local metalink. + ") . N(" --download-all - download all needed packages before trying to install them ++") . N(" --download-dir - download the needed packages in the specified directory + ") . N(" --downloader - program to use to retrieve distant files. + known programs: %s + ", join(', ', urpm::download::ftp_http_downloaders()))
\ No newline at end of file diff --git a/zarb-ml/mageia-dev/attachments/20121029/db4197b8/attachment-0001.asc b/zarb-ml/mageia-dev/attachments/20121029/db4197b8/attachment-0001.asc new file mode 100644 index 000000000..1f7e0e5ce --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/db4197b8/attachment-0001.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iD8DBQBQjj+6T1rWTfpocyQRAou9AKDSKy1tW2Y7RgfqfLYUkK2GGy476QCg6JGr +0vjZlcOn9rfYh1RFbbJCOcE= +=JLCN +-----END PGP SIGNATURE----- diff --git a/zarb-ml/mageia-dev/attachments/20121029/db4197b8/attachment.asc b/zarb-ml/mageia-dev/attachments/20121029/db4197b8/attachment.asc new file mode 100644 index 000000000..1f7e0e5ce --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/db4197b8/attachment.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iD8DBQBQjj+6T1rWTfpocyQRAou9AKDSKy1tW2Y7RgfqfLYUkK2GGy476QCg6JGr +0vjZlcOn9rfYh1RFbbJCOcE= +=JLCN +-----END PGP SIGNATURE----- diff --git a/zarb-ml/mageia-dev/attachments/20121029/dd526a73/attachment-0001.asc b/zarb-ml/mageia-dev/attachments/20121029/dd526a73/attachment-0001.asc new file mode 100644 index 000000000..054477aaf --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/dd526a73/attachment-0001.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iD8DBQBQjjSiT1rWTfpocyQRAkqJAKDVBtxOt94RceMtKJlBF/Kpnf0UoACdG4Vs +NhyQM7oAx0Rl2skP/hqDrB0= +=1zCI +-----END PGP SIGNATURE----- diff --git a/zarb-ml/mageia-dev/attachments/20121029/dd526a73/attachment.asc b/zarb-ml/mageia-dev/attachments/20121029/dd526a73/attachment.asc new file mode 100644 index 000000000..054477aaf --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/dd526a73/attachment.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iD8DBQBQjjSiT1rWTfpocyQRAkqJAKDVBtxOt94RceMtKJlBF/Kpnf0UoACdG4Vs +NhyQM7oAx0Rl2skP/hqDrB0= +=1zCI +-----END PGP SIGNATURE----- diff --git a/zarb-ml/mageia-dev/attachments/20121029/e8517aeb/attachment-0001.asc b/zarb-ml/mageia-dev/attachments/20121029/e8517aeb/attachment-0001.asc new file mode 100644 index 000000000..a534baf7d --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/e8517aeb/attachment-0001.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iD8DBQBQjjGtT1rWTfpocyQRAkzEAKDa4A2uAaHh6AFcKjwukvfwzBiWdACfSCLC +XVSEC++50M9uS54c5AG557M= +=DKBy +-----END PGP SIGNATURE----- diff --git a/zarb-ml/mageia-dev/attachments/20121029/e8517aeb/attachment.asc b/zarb-ml/mageia-dev/attachments/20121029/e8517aeb/attachment.asc new file mode 100644 index 000000000..a534baf7d --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121029/e8517aeb/attachment.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iD8DBQBQjjGtT1rWTfpocyQRAkzEAKDa4A2uAaHh6AFcKjwukvfwzBiWdACfSCLC +XVSEC++50M9uS54c5AG557M= +=DKBy +-----END PGP SIGNATURE----- |