Bug 25300 - [FR] --download-only
Summary: [FR] --download-only
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: update-kernel (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: Evgenii Terechkov
QA Contact: qa-sisyphus
URL: http://git.altlinux.org/people/evg/pa...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-31 10:42 MSK by Evgenii Terechkov
Modified: 2012-12-25 19:21 MSK (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgenii Terechkov 2011-03-31 10:42:52 MSK
Было бы неплохо уметь предварительно только загружать обновления для ядерного хозяйства, без установки.
Comment 1 Evgenii Terechkov 2012-12-23 12:10:40 MSK
Сделал. УМВР.

Прошу acl/merge/критику.
Comment 2 Michael Shigorin 2012-12-25 02:45:57 MSK
Поймал странноватое, хотя м.б. завихрениями apt; хотя -n отработало и пакеты в /var/cache/apt/archives приехали (специально подключил удалённый репо):

# update-kernel -n
Try to install new kernel kernel-image-led-ws-3.0.57-alt5 and update its modules [y]/n? 
update-kernel: kernel-modules-drm is installed, trying to update...
update-kernel: kernel-modules-kvm is installed, trying to update...
update-kernel: kernel-modules-media is installed, trying to update...
update-kernel: kernel-modules-sound is installed, trying to update...
Reading Package Lists... Done
Building Dependency Tree... Done
Selecting kernel-modules-drm-led-ws#3.0.57-alt5 for 'kernel-modules-drm-3.0.57-led-ws-alt5'
Selecting kernel-modules-kvm-led-ws#3.0.57-alt5 for 'kernel-modules-kvm-3.0.57-led-ws-alt5'
Selecting kernel-modules-media-led-ws#3.0.57-alt5 for 'kernel-modules-media-3.0.57-led-ws-alt5'
Selecting kernel-modules-sound-led-ws#3.0.57-alt5 for 'kernel-modules-sound-3.0.57-led-ws-alt5'
The following NEW packages will be installed:
  kernel-image-led-ws#3.0.57-alt5 kernel-modules-drm-led-ws#3.0.57-alt5
  kernel-modules-kvm-led-ws#3.0.57-alt5
  kernel-modules-media-led-ws#3.0.57-alt5
  kernel-modules-sound-led-ws#3.0.57-alt5
0 upgraded, 5 newly installed, 0 removed and 7 not upgraded.
Need to get 17.3MB of archives.
After unpacking 56.2MB of additional disk space will be used.
Get:1 http://ftp.linux.kiev.ua i586/classic kernel-image-led-ws#3.0.57-alt5 3.0.57-alt5 [13.3MB]
Get:2 http://ftp.linux.kiev.ua i586/classic kernel-modules-drm-led-ws#3.0.57-alt5 3.0.57-alt5 [888kB]
Get:3 http://ftp.linux.kiev.ua i586/classic kernel-modules-kvm-led-ws#3.0.57-alt5 3.0.57-alt5 [144kB]
Get:4 http://ftp.linux.kiev.ua i586/classic kernel-modules-media-led-ws#3.0.57-alt5 3.0.57-alt5 [1871kB]
Get:5 http://ftp.linux.kiev.ua i586/classic kernel-modules-sound-led-ws#3.0.57-alt5 3.0.57-alt5 [1082kB]
Fetched 17.3MB in 6s (2758kB/s)                                                
Download complete and in download only mode
update-kernel -n  4.08s user 1.34s system 43% cpu 12.519 total
# update-kernel   
Try to install new kernel kernel-image-led-ws-3.0.57-alt5 and update its modules [y]/n? 
update-kernel: kernel-modules-drm is installed, trying to update...
update-kernel: kernel-modules-kvm is installed, trying to update...
update-kernel: kernel-modules-media is installed, trying to update...
update-kernel: kernel-modules-sound is installed, trying to update...
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package 
update-kernel: failed to install kernel-image-led-ws-3.0.57-alt5 with modules
Comment 3 Michael Shigorin 2012-12-25 02:47:45 MSK
При этом:

# apt-get install kernel-image-led-ws\#3.0.57-alt5 
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  kernel-image-led-ws#3.0.57-alt5
Comment 4 Michael Shigorin 2012-12-25 02:50:04 MSK
+ '[' -z '' ']'
+ apt-get install -y '' kernel-image-led-ws#3.0.57-alt5 kernel-modules-drm-3.0.57-led-ws-alt5 kernel-modules-kvm-3.0.57-led-ws-alt5 kernel-modules-media-3.0.57-led-ws-alt5 kernel-modules-sound-3.0.57-led-ws-alt5
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package 

Мешает '', разумеется -- не надо кавычить $dryrun.  Поправишь?
Comment 5 Evgenii Terechkov 2012-12-25 02:58:45 MSK
Угу.
Comment 6 Michael Shigorin 2012-12-25 11:51:43 MSK
Во, теперь порядок :) (хорошо сидеть на led-ws, тестируя update-kernel)

Зальёшь 0.9.5?
Comment 7 Repository Robot 2012-12-25 18:11:16 MSK
update-kernel-0.9.5-alt1 -> sisyphus:

* Tue Dec 25 2012 Terechkov Evgenii <evg@altlinux> 0.9.5-alt1
- Add --download-only (--dry-run/-n) support (ALT#25300)
Comment 8 Evgenii Terechkov 2012-12-25 19:21:24 MSK
Ok