0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2025-01-03 03:10:07 -05:00

disable bootstrap patch, fix small error in upstream implementation

This commit is contained in:
Malte Jürgens 2023-07-09 14:48:33 +02:00
parent 6ba51309d1
commit b379088c95
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3
2 changed files with 23 additions and 1 deletions

View file

@ -1,6 +1,5 @@
patches/allow-JXL-in-non-nightly-browser.patch patches/allow-JXL-in-non-nightly-browser.patch
patches/allow-ubo-private-mode.patch patches/allow-ubo-private-mode.patch
patches/bootstrap-without-vcs.patch
patches/context-menu.patch patches/context-menu.patch
patches/custom-ubo-assets-bootstrap-location.patch patches/custom-ubo-assets-bootstrap-location.patch
patches/dbus_name.patch patches/dbus_name.patch
@ -11,6 +10,7 @@ patches/librewolf-pref-pane.patch
patches/librewolf-prefs.patch patches/librewolf-prefs.patch
patches/mozilla_dirs.patch patches/mozilla_dirs.patch
patches/msix.patch patches/msix.patch
patches/relative-bootstrap.patch
patches/remove_addons.patch patches/remove_addons.patch
patches/sed-patches/allow-searchengines-non-esr.patch patches/sed-patches/allow-searchengines-non-esr.patch
patches/sed-patches/disable-pocket.patch patches/sed-patches/disable-pocket.patch

View file

@ -0,0 +1,22 @@
--- a/python/mozversioncontrol/mozversioncontrol/__init__.py
+++ b/python/mozversioncontrol/mozversioncontrol/__init__.py
@@ -828,7 +828,7 @@ class SrcRepository(Repository):
"""
res = []
# move away the .git or .hg folder from path to more easily test in a hg/git repo
- for root, dirs, files in os.walk("."):
+ for root, dirs, files in os.walk(path):
for name in files:
res.append(os.path.join(root, name))
return res
@@ -841,7 +841,9 @@ class SrcRepository(Repository):
import fnmatch
files = list(
- p.replace("\\", "/").replace("./", "") for p in self.get_files(path) if p
+ (os.path.relpath(p, path)).replace("\\", "/")
+ for p in self.get_files(path)
+ if p
)
files.sort()
ig = self.git_ignore(path)