ALT Linux Bugzilla
– Attachment 5314 Details for
Bug 26887
mkaptbox: возможность вынести aptbox за пределы workdir
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
patch
mkaptbox.patch (text/plain), 1.67 KB, created by
Vadim Gusev
on 2012-02-03 15:06:47 MSK
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Vadim Gusev
Created:
2012-02-03 15:06:47 MSK
Size:
1.67 KB
patch
obsolete
>--- mkaptbox.orig 2011-10-30 22:53:00.000000000 +0400 >+++ mkaptbox 2012-02-03 14:43:51.801962399 +0400 >@@ -133,22 +133,22 @@ > repo="$(readlink -fv -- "$repo")" > > # does aptbox exist yet? >-if [ -e aptbox -o -L aptbox ]; then >+if [ -e $aptbox -o -L $aptbox ]; then > [ -n "$force" ] || fatal "remove $aptbox first." >- [ -d aptbox ] || fatal "$aptbox: invalid pathname." >+ [ -d $aptbox ] || fatal "$aptbox: invalid pathname." > > # empty dir? >- if rmdir -- aptbox 2>/dev/null; then >- mkdir -m700 $verbose -- aptbox >&2 >- cd aptbox >+ if rmdir -- $aptbox 2>/dev/null; then >+ mkdir -m700 $verbose -- $aptbox >&2 >+ cd $aptbox > else >- cd aptbox >+ cd $aptbox > [ -d ./etc/apt -a -d ./var/lib/rpm ] || > fatal "$aptbox: doesn't look valid." > fi > else >- mkdir -m700 $verbose -- aptbox >&2 >- cd aptbox >+ mkdir -m700 $verbose -- $aptbox >&2 >+ cd $aptbox > fi > > verbose "Changed working directory to \`$aptbox'." >@@ -201,15 +201,15 @@ > > # create aptbox version of ~/.rpmrc if necessary. > aptbox_home= >-rpm_showrc="$(rpm --showrc)" >-current_arch="$(printf %s "$rpm_showrc" |sed -ne 's/^install arch[[:space:]]*:[[:space:]]*\([^[:space:]]\+\).*/\1/p')" >+rpm_showrc="rpm --showrc" >+current_arch="$(eval "$rpm_showrc" |sed -ne 's/^install arch[[:space:]]*:[[:space:]]*\([^[:space:]]\+\).*/\1/p')" > [ -n "$current_arch" ] || > current_arch="$(uname -m)" > [ "$current_arch" != "${target:-$def_target}" ] && > alternate_arch=1 || > alternate_arch= > if [ -n "$alternate_arch" ] && >- ! printf %s "$rpm_showrc" | >+ ! eval "$rpm_showrc" | > LC_ALL=C grep -qs "^compatible archs[[:space:]]*:.*\<${target:-$def_target}\>"; then > aptbox_home="$aptbox/home/user" > for f in "$HOME/.rpmrc" "$HOME/.rpmmacros"; do
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 26887
: 5314