]> git.pld-linux.org Git - packages/setup.git/commitdiff
- rel 2; export var in zsh only if var is set
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 24 Feb 2011 19:24:01 +0000 (19:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    setup-zsh.patch -> 1.1
    setup.spec -> 1.160

setup-zsh.patch [new file with mode: 0644]
setup.spec

diff --git a/setup-zsh.patch b/setup-zsh.patch
new file mode 100644 (file)
index 0000000..c36b910
--- /dev/null
@@ -0,0 +1,28 @@
+Index: profile
+===================================================================
+RCS file: /cvsroot/setup/etc/profile,v
+retrieving revision 1.55
+retrieving revision 1.56
+diff -u -u -r1.55 -r1.56
+--- setup/etc/profile  22 Jan 2011 20:08:54 -0000      1.55
++++ setup/etc/profile  24 Feb 2011 19:17:44 -0000      1.56
+@@ -128,7 +128,18 @@
+                               ;;
+                       * )
+                               if [ -r "$i" ]; then
+-                                      . "$i"; export "$NAME"
++                                      . "$i"
++                                      # export VAR will set and export VAR
++                                      # if it didn't exist before. Other shells
++                                      # (ksh, bash) behave differently.
++                                      if [ -n "$ZSH_VERSION" ]; then
++                                              # zsh specific
++                                              if [ "${(P)+NAME}" = "1" ]; then
++                                                      export "$NAME"
++                                              fi
++                                      else
++                                              export "$NAME"
++                                      fi
+                               fi
+                               ;;
+               esac
index 63517824dfd5606574a0c1ae78484d87d4bf025d..334f60b0b4ab607cb711d182130edfcdb5f8a76e 100644 (file)
@@ -14,7 +14,7 @@ Summary(pt_BR.UTF-8): Vários arquivos básicos de configuração
 Summary(tr.UTF-8):     Basit kurulum dosyaları
 Name:          setup
 Version:       2.7.3
-Release:       1
+Release:       2
 License:       Public Domain, partially BSD-like
 Group:         Base
 Source0:       %{name}-%{version}.tar.bz2
@@ -30,6 +30,7 @@ Patch0:               %{name}-iana-etc.patch
 # This is source of non-iana changes in services file
 Patch1:                %{name}-services.patch
 Patch2:                protocols-fmt.patch
+Patch3:                %{name}-zsh.patch
 BuildRequires: dietlibc-static
 BuildRequires: gawk
 Requires:      FHS >= 2.3-24.1
@@ -83,6 +84,7 @@ dosyalarını içerir.
 %patch0 -p1
 mv iana-etc{-%{iana_etc_ver},}
 %patch2 -p1
+%patch3 -p1
 
 cp -a %{SOURCE2} iana-etc/protocol-numbers.iana
 cp -a %{SOURCE3} iana-etc/port-numbers.iana
This page took 0.031725 seconds and 4 git commands to generate.