Giter Site home page Giter Site logo

cerbero's People

Contributors

adn770 avatar andrunko avatar aslobodeniuk avatar asoliverez-ccu avatar bilboed avatar carlosfg-flu avatar cfoch avatar dememax avatar diegonieto avatar drakkan avatar ford-prefect avatar gkiagia avatar marecki315 avatar mjimenofluendo avatar nachogarglez avatar ndufresne avatar neodesys avatar nirbheek avatar ocrete avatar palegre-fluendo avatar pamarcos avatar rgonzalezfluendo avatar sdroege avatar superdump avatar thaytan avatar tp-m avatar tsaunier avatar xclaesse avatar ylatuya avatar ystreet avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cerbero's Issues

Adding patches to git based recipe

When a patch is added to a git based recipe which was already build (or at least build directory was created from repo), the new patches won't be applied. It's because of check inside extract method in GitCache class:

  def extract(self):
     if os.path.exists(self.build_dir):
         # fix read-only permissions
         if self.config.platform == Platform.WINDOWS:
             shell.call('chmod -R +w .git/', self.build_dir, fail=False)
         try:
             commit_hash = git.get_hash(self.repo_dir, self.commit)
             checkout_hash = git.get_hash(self.build_dir, 'HEAD')
             if commit_hash == checkout_hash:
                 return False
         except Exception:
             pass
         shutil.rmtree(self.build_dir)
     if not os.path.exists(self.build_dir):
         os.mkdir(self.build_dir)
     if self.supports_non_src_build:
         return

     # checkout the current version
     git.local_checkout(self.build_dir, self.repo_dir, self.commit)
     # apply the patches only after checkout to avoid failure with patches already applied.
     self.apply_patches()
     return True`

Build directory has to be removed manually in order to apply new patches.
One of the solutions that might work: always do a 'git reset --hard ...' and always apply 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.