ALT Linux Bugzilla
– Attachment 2508 Details for
Bug 14986
[patch] Support for relative paths to rpms/dirs as arguments
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
relative-paths-repocop-run.patch
relative-paths-repocop-run.patch (text/plain), 1.03 KB, created by
Mikhail Gusarov
on 2008-03-19 00:48:30 MSK
(
hide
)
Description:
relative-paths-repocop-run.patch
Filename:
MIME Type:
Creator:
Mikhail Gusarov
Created:
2008-03-19 00:48:30 MSK
Size:
1.03 KB
patch
obsolete
>--- repocop-run.orig 2008-03-19 00:42:34 +0300 >+++ repocop-run 2008-03-19 00:45:15 +0300 >@@ -89,10 +89,15 @@ > { > local rpmarg=$1 > echo processing $rpmarg >+ local absrpm >+ case $rpmarg in >+ /*) absrpm=$rpmarg;; >+ *) absrpm=$PWD/$rpmarg;; >+ esac > PKGTMPDIR="$(mktemp -dt "${0##*/}.XXXXXXXX")" || exit > export RPM_BUILD_ROOT="$PKGTMPDIR" > export REPOCOP_PKG_ROOT="$PKGTMPDIR" >- export REPOCOP_PKG="$rpmarg" >+ export REPOCOP_PKG="$absrpm" > pkgname=`basename $REPOCOP_PKG` > pkgshortname=${pkgname%%.rpm} > # mark the rpm as processed >@@ -125,10 +130,10 @@ > if [ ! -e "$PKGTMPDIR/.unpack" ]; then > touch "$PKGTMPDIR/.unpack" > if [ -n "$repocop_use_fakeroot" ]; then >- rpm2cpio "$rpmarg" | fakeroot -s .fakedata -- \ >+ rpm2cpio "$absrpm" | fakeroot -s .fakedata -- \ > cpio -idmu --quiet --no-absolute-filenames || exit 2 > else >- rpm2cpio "$rpmarg" | \ >+ rpm2cpio "$absrpm" | \ > cpio -idmu --quiet --no-absolute-filenames || exit 2 > fi > # to speed up skipping
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14986
: 2508