Browse code

Disable SOURCE binding (temporary)

YustasSwamp authored on 2015/06/27 18:18:40
Showing 2 changed files
... ...
@@ -126,8 +126,9 @@ class PackageUtils(object):
126 126
         chrootCmd=self.runInChrootCommand+" "+chrootID
127 127
         shutil.copyfile(specFile, chrootID+chrootSpecPath+specName )
128 128
         
129
-        if os.geteuid()==0:
130
-            self.copySourcesTobuildroot(listSourcesFiles,package,chrootSourcePath)
129
+# FIXME: some sources are located in SPECS/.. how to mount?
130
+#        if os.geteuid()==0:
131
+        self.copySourcesTobuildroot(listSourcesFiles,package,chrootSourcePath)
131 132
         self.copySourcesTobuildroot(listPatchFiles,package,chrootSourcePath)
132 133
         
133 134
         listRPMFiles=[]
... ...
@@ -31,7 +31,8 @@ shift
31 31
 if [ ${EUID} -eq 0 ] ; then
32 32
     CHROOT_CMD=chroot
33 33
 else
34
-    CHROOT_CMD="contain -b $SOURCES:usr/src/photon/SOURCES,$RPMS:usr/src/photon/RPMS -c"
34
+#    CHROOT_CMD="contain -b $SOURCES:usr/src/photon/SOURCES,$RPMS:usr/src/photon/RPMS -c"
35
+    CHROOT_CMD="contain -b $RPMS:usr/src/photon/RPMS -c"
35 36
 fi
36 37
 
37 38
 $CHROOT_CMD "${BUILDROOT}" \