Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish 'hash' mode for pkg create #1829

Closed
wants to merge 1 commit into from

Conversation

allanjude
Copy link
Member

@allanjude allanjude commented Apr 13, 2020

Add two new configuration knobs to control creating packages with
the short hash appended to the package name.

PKG_CREATE_HASH renames the packages to use the short hash
PKG_CREATE_SYMLINK creates a symlink from the original pkg filename

This builds upon b9f1e05 and adds
the missing documentation

Also:
pkg create should write to .pkgname first then rename on success

This allows the ports tree to have pkg create output directly to the
destination directory, instead of copying the file afterwards

The hash is separated from the version by a ~ since this character
is not already used as part of a version numbers. Many places in the
code assume the version is everything after the last - character.

@allanjude
Copy link
Member Author

Updated to require much less diff than before

Add two new configuration knobs to control creating packages with
the short hash appended to the package name.

PKG_CREATE_HASH renames the packages to use the short hash
PKG_CREATE_SYMLINK creates a symlink from the original pkg filename

This builds upon b9f1e05 and adds
the missing documentation

Also:
pkg create should write to .pkgname first then rename on success

This allows the ports tree to have pkg create output directly to the
destination directory, instead of copying the file afterwards

The hash is separated from the version by a ~ since this character
is not already used as part of a version numbers. Many places in the
code assume the version is everything after the last - character.

Update the fetch code to also use ~ to separate the hash in its cache
@allanjude
Copy link
Member Author

This is superceeded by master...allanjude:hashed_repo

@allanjude allanjude closed this Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant