Re: Best practices wrt. Changelog entries in spec file (upstream vs. specfile)

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

 



After a few minutes, here's a hack.  You need yum-utils installed to
get yumdownloader.  Please don't blame me if this sucks.

#!/bin/sh -x
DIR=yumlook.$$.$RANDOM

PKG=$1

FILE=`pwd`/$1

cd /tmp
mkdir $DIR
pushd $DIR

yumdownloader $PKG

# Should only be one file in this directory

rpm2cpio $PKG* | cpio --quiet --no-absolute-filenames -idmv 2>&1

$SHELL
popd
rm -rf /tmp/$DIR

For grins, here's another hack that works on local files and needs
nothing (save RPM) installed:

DIR=rpmlook.$$.$RANDOM
FILE=`pwd`/$1

cd /tmp
mkdir $DIR

pushd /tmp/$DIR
rpm2cpio "$FILE" | cpio --quiet --no-absolute-filenames -idmv 2>&1

$SHELL
popd
rm -rf /tmp/$DIR

 - J<

-- 
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux