Running rpmlint within mock

Jason L Tibbitts III tibbs at math.uh.edu
Sat Jul 15 02:10:56 UTC 2006


>>>>> "JK" == Jesse Keating <jkeating at j2solutions.net> writes:

JK> mock chroot will allow you to run a comand in the chroot.

Oh, awesome.  Honestly, very many thanks.  Might I be so bold as to
suggest something like the following patch?

Index: mock.py
===================================================================
RCS file: /cvs/fedora/mock/mock.py,v
retrieving revision 1.54
diff -u -r1.54 mock.py
--- mock.py     28 Jun 2006 15:14:45 -0000      1.54
+++ mock.py     15 Jul 2006 02:08:57 -0000
@@ -791,6 +791,7 @@
     usage = """
     usage: mock [options] /path/to/srpm
     optional commands:
+        chroot - run the specified command within the chroot
         clean - clean out the specified chroot
         init - initialize the chroot, do not build anything"""
     parser = OptionParser(usage=usage, version=__VERSION__)
cvs diff: Diffing docs
Index: docs/mock.1
===================================================================
RCS file: /cvs/fedora/mock/docs/mock.1,v
retrieving revision 1.2
diff -u -r1.2 mock.1
--- docs/mock.1 21 Aug 2005 16:29:32 -0000      1.2
+++ docs/mock.1 15 Jul 2006 02:08:57 -0000
@@ -37,6 +37,8 @@
 .TP
 \fBinit\fR \- initialize a chroot (install packages, setup devices, etc.)
 .TP
+\fBchroot\fR \- run the specified command within the chroot (which must already be initialized)
+.TP
 \fBclean\fR \- purge the chroot tree
 .TP
 \fBrebuild\fR \- If no command is specified, rebuild is assumed. Rebuilds the specified SRPM

 - J<




More information about the Fedora-buildsys-list mailing list