Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A autojump
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 158
    • Issues 158
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 54
    • Merge requests 54
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • William Ting
  • autojump
  • Merge requests
  • !404

install-py: add distribution argument

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/TomasTomecek/install-add-distribution-arg into master Mar 22, 2016
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: TomasTomecek

Hi there, Fedora maintainer here.

When packaging autojump in Fedora, I have hard times with this piece of code:

https://github.com/wting/autojump/blob/master/install.py#L36

It translates to a path from buildroot instead of real path on the system when the package is installed, e.g.:

Please manually add the following line(s) to ~/.zshrc:

        [[ -s /BUILDROOT/autojump-22.3.0-1.fc22.x86_64/etc/profile.d/autojump.sh ]] && source /BUILDROOT/autojump-22.3.0-1.fc22.x86_64/etc/profile.d/autojump.sh

This patch adds argument --distribution to install.py script which disables such behaviour and produces correct output:

Please manually add the following line(s) to ~/.zshrc:

        [[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh

It also produces correct code for autojump.sh.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/TomasTomecek/install-add-distribution-arg