mock mock-yum,NONE,1.1 Makefile,1.3,1.4

Jeremy Katz (katzj) fedora-extras-commits at redhat.com
Thu Jul 14 18:00:28 UTC 2005


Author: katzj

Update of /cvs/fedora/mock
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13029

Modified Files:
	Makefile 
Added Files:
	mock-yum 
Log Message:
add mock-yum wrapper to remove the selinux LD_PRELOAD.  also, only set
the LD_PRELOAD for use with running yum



--- NEW FILE mock-yum ---
#!/usr/bin/python
# Basically a copy of /usr/bin/yum that removes the LD_PRELOAD set by mock

import os, sys

if os.environ.has_key("LD_PRELOAD"): del os.environ["LD_PRELOAD"]

import yum
sys.path.insert(0, "/usr/share/yum-cli")
import yummain
try:
    yummain.main(sys.argv[1:])
except KeyboardInterrupt, e:
    print >> sys.stderr, "\n\nExiting on user cancel."
    sys.exit(1)


Index: Makefile
===================================================================
RCS file: /cvs/fedora/mock/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Makefile	27 Jun 2005 03:43:11 -0000	1.3
+++ Makefile	14 Jul 2005 18:00:26 -0000	1.4
@@ -21,6 +21,7 @@
 install:
 	mkdir -p $(DESTDIR)/usr/bin/
 	install -m 755 mock.py $(DESTDIR)/usr/bin/mock
+	install -m 755 mock-yum $(DESTDIR)/usr/libexec/mock-yum
 	mkdir -p $(DESTDIR)/var/lib/mock
 	for d in $(SUBDIRS); do make  DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
 




More information about the fedora-extras-commits mailing list