Use the cpio headers instead of the rpm headers when unpacking.
The files in the cpio payload doesn't actually follow the file order
in the rpm headers, so we need to decode the cpio header and use the
information there.
1 CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -g
2 LDLIBS = -lexpat -lz -g -lrpm -lcurl
4 all : razor test-driver
6 razor : razor.o yum.o main.o rpm.o types.o util.o
8 *.o : razor.h razor-internal.h
11 test-driver : razor.o types.o util.o test-driver.o
14 ./test-driver test.xml