Skip to content

Commit

Permalink
Rename bin/yum.py to bin/yum
Browse files Browse the repository at this point in the history
This allows for running the binary from the source tree (with PYTHONPATH
set to the tree).

Previously, the binary would try to import itself when it calls "import
yum" instead of the top-level package "yum" (the script directory is
inserted _before_ PYTHONPATH in sys.path).
  • Loading branch information
dmnks committed Feb 12, 2019
1 parent 387685e commit ae33e38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ install:
$(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/usr/share/yum-cli', 1, '/usr/share/yum-cli', 1)"

mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/sbin
install -m 755 bin/yum.py $(DESTDIR)/usr/bin/yum
install -m 755 bin/yum $(DESTDIR)/usr/bin/yum
install -m 755 bin/yum-updatesd.py $(DESTDIR)/usr/sbin/yum-updatesd

mkdir -p $(DESTDIR)/var/cache/yum
Expand Down
File renamed without changes.

0 comments on commit ae33e38

Please sign in to comment.