fluendo / cerbero Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Lesser General Public License v2.1
License: GNU Lesser General Public License v2.1
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.