GithubHelp home page GithubHelp logo

christinameno / rdopkg-tar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from red-hat-storage/rdopkg-tar

0.0 1.0 0.0 28 KB

combine many changes with rdopkg

License: Apache License 2.0

Python 100.00%

rdopkg-tar's Introduction

rdopkg tar-changes

This is a tool that works in a similar way to rdopkg patch. It uses rdopkg's APIs to tar up all the changes in the Git -patches branch into a "-changes.tar.gz" tarball and adds the tarball to the RPM packaging.

I use this to combine all our downstream changes into a single file suitable for dist-git.

Comparing rdopkg patch with this tar-changes script:

"rdopkg patch" this "tar-changes" script
Transforms a downstream -patches branch into output suitable for dist-git
Operates in conjuction with an unchanging upstream tarball
Applies changes during the %prep stage of rpmbuild
Generates .patch files Generates a tarball of changed files
Limited by RHEL 7's static buffer limit for %prep in rpmbuild. rpmbuild's %prep script does not grow with the number of patches.
Ability to delete files entirely from the tree downstream. Unable to delete files (only add or edit existing files).
Unable to edit binary files Able to apply edits to binary files
Does not require the %commit macro in your spec file in order to generate the %changelog. Requires the %commit macro in your spec file in order to generate the %changelog.
Slightly more visibility into changes when browsing dist-git, since you can see the individual .patch files changing. Slightly less visibility into changes when browsing dist-git, since you only see a tarball and Git sha1 changing.
To reconstruct a -patches branch commit-by-commit, without the ref or sha1, use git am No simple way to reconstruct a -patches branch if a ref is dangling/lost. More important to tag every -patches branch change with rdopkg tag-patches.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.