Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
1
Konular (issue)
1
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
b1543d5e
Kaydet (Commit)
b1543d5e
authored
Nis 04, 2007
tarafından
Gürer Özen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
buna burada gerek yok zaten
üst
d14234b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
51 deletions
+0
-51
catbox.patch
pisi/catbox.patch
+0
-51
No files found.
pisi/catbox.patch
deleted
100644 → 0
Dosyayı görüntüle @
d14234b1
Index: build.py
===================================================================
--- build.py (revision 10048)
+++ build.py (working copy)
@@ -193,13 +193,30 @@
# apply the patches and prepare a source directory for build.
self.apply_patches()
+ if ctx.get_option('use_catbox'):
+ import catbox
+ ret = catbox.run(
+ self.sandboxed,
+ ["/var/pisi", "/tmp", "/dev/tty", "/dev/null"],
+ logger = self.sandbox_logger
+ )
+ if ret != 0:
+ raise Error, "actions.py borked"
+ else:
+ self.sandboxed()
+
+ # after all, we are ready to build/prepare the packages
+ return self.build_packages()
+
+ def sandbox_logger(self, event, data):
+ if event == "denied":
+ ctx.ui.error("Access denied to '%s'" % data)
+
+ def sandboxed(self):
self.run_setup_action()
self.run_build_action()
self.run_install_action()
- # after all, we are ready to build/prepare the packages
- return self.build_packages()
-
def set_environment_vars(self):
"""Sets the environment variables for actions API to use"""
Index: cli/commands.py
===================================================================
--- cli/commands.py (revision 10048)
+++ cli/commands.py (working copy)
@@ -452,6 +452,8 @@
default=False, help=_("Do not install build dependencies, fail if a build dependency is present"))
group.add_option("-F", "--package-format", action="store", default='1.1',
help=_("PiSi binary package formats: '1.0', '1.1' (default)"))
+ self.parser.add_option("", "--use-catbox", action="store_true", default=False,
+ help=_("use catbox"))
def add_steps_options(self):
group = OptionGroup(self.parser, _("build steps"))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment