ALT Linux Bugzilla
– Attachment 7494 Details for
Bug 34799
добавил возможность делать update для пакета (state=update)
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
diff новый старый
diff-new-old.diff (text/plain), 1.11 KB, created by
Anton Shevtsov
on 2018-04-12 15:54:01 MSK
(
hide
)
Description:
diff новый старый
Filename:
MIME Type:
Creator:
Anton Shevtsov
Created:
2018-04-12 15:54:01 MSK
Size:
1.11 KB
patch
obsolete
>32c32 >< choices: [ absent, present, update ] >--- >> choices: [ absent, present ] >59,63d58 >< - name: Update package to latest version >< apt_rpm: >< pkg: foo >< state: update >< >153,171d147 >< def update_packages(module, pkgspec): >< >< packages = "" >< for package in pkgspec: >< packages += "'%s' " % package >< >< if len(packages) != 0: >< >< rc, out, err = module.run_command("%s -y install %s" % (APT_PATH, packages)) >< >< # apt-rpm always have 0 for exit code if --force is used >< if rc != 0: >< module.fail_json(msg="'apt-get -y install %s' failed: %s" % (packages, err)) >< else: >< module.exit_json(changed=True, msg="%s updated" % packages) >< else: >< module.exit_json(changed=False) >< >< >176c152 >< state=dict(type='str', default='installed', choices=['absent', 'installed', 'present', 'removed', 'update']), >--- >> state=dict(type='str', default='installed', choices=['absent', 'installed', 'present', 'removed']), >197,199d172 >< >< elif p['state'] in ['update']: >< update_packages(module, packages)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34799
:
7493
| 7494