ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] [Patch] Keep rpm-fs*.rpm


From: Svein Seldal
Subject: [Ltib] [Patch] Keep rpm-fs*.rpm
Date: Mon, 06 Jul 2009 21:25:07 +0200
User-agent: Thunderbird 2.0.0.22 (X11/20090608)

Hi (again)


When the --hostcf is run it will build rpm-fs*.rpm to a temporary directory and then install it (using the host's rpm). Next, the same rpm-fs* package will be fake-updated (-Uv) using the "ltib-rpm". When done, the rpm file is deleted.

I want to keep that rpm file, because I can then use it later to recreate the /opt/xxx directories.

I've attached a small patch which copies this temporary .rpm file to the RPMS location before the temp directory is deleted.

I believe it's safe to use this file for installation, since both the host-rpm and the ltib-rpm is using the same rpm-fs*.rpm file for installation.


- Svein
Index: ltib
===================================================================
RCS file: /sources/ltib/ltib/ltib,v
retrieving revision 1.36
diff -u -r1.36 ltib
--- ltib        6 Jul 2009 13:16:39 -0000       1.36
+++ ltib        6 Jul 2009 19:02:39 -0000
@@ -2412,6 +2412,7 @@
        $cmd .= "$rpm";
     print "$cmd\n";
     system_nb($cmd);
+    system_nb("cp $rpm $cf->{defpfx}/usr/src/rpm/RPMS/$pcf->{RPMTARCH}") == 0 
or die;
     system_nb("rm -rf $cf->{rpmdir}") == 0 or die;
 
     # The existing host rpms are possibly invalid now so remove them

reply via email to

[Prev in Thread] Current Thread [Next in Thread]