Bug 951295
| Summary: | pysdm fails when running from shell | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Fabio Olive Leite <fleite> |
| Component: | pysdm | Assignee: | Richard Shaw <hobbes1069> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 18 | CC: | hobbes1069 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | pysdm-0.4.1-7.fc19 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-11-05 02:51:15 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Fabio Olive Leite
2013-04-12 02:04:17 UTC
Whoops, looks like i fixed this and did builds but never submitted a bodhi update. Working on it now. pysdm-0.4.1-7.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/pysdm-0.4.1-7.fc18 pysdm-0.4.1-7.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/pysdm-0.4.1-7.fc19 Package pysdm-0.4.1-7.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing pysdm-0.4.1-7.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-20040/pysdm-0.4.1-7.fc18 then log in and leave karma (feedback). Verified that pysdm-0.4.1-7.fc18.noarch works fine regardless of how it is called. Tried these:
$ sudo pysdm
$ sudo /bin/pysdm
$ sudo /usr/bin/pysdm
They all work equally well. Thank you!
For a future update, you might as well completely remove the "path=" lines, as they serve absolutely no purpose in the script:
$ cat -n /usr/bin/pysdm
1 #!/bin/sh
2
3 path=`dirname $0`
4 path=`dirname /usr`
5 cd /usr/share/pysdm
6 python pysdm.py
Remove lines 3 and 4. "path" is not an exported variable in that script, so they will not affect how pysdm runs in any way. :)
Thank you for your attention!
Fábio Olivé
Yeah, but then it would be better to patch it. This fix is a sed one liner :) The best (upstream) patch would probably be to use a .in file and substitute the correct path during package building. OK, I get your point now. :) Added karma to the update on bodhi. pysdm-0.4.1-7.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. pysdm-0.4.1-7.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |