[PATCH] Set ANACONDAVERSION on most livecd installs.

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

 



This should add the version number to exception reports for livecd installs
launched by clicking the icon or menu option or whatever.  It will not help
the case where people run anaconda by hand from a command line.
---
 liveinst/Makefile    |    1 +
 liveinst/liveinst.sh |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/liveinst/Makefile b/liveinst/Makefile
index 67d260e..174a9ea 100644
--- a/liveinst/Makefile
+++ b/liveinst/Makefile
@@ -21,6 +21,7 @@ all: liveinst.desktop
 
 liveinst.desktop: liveinst.desktop.in
 	LC_ALL=C intltool-merge -d -u ../po liveinst.desktop.in liveinst.desktop
+	sed -i "s/@VERSION@/$(VERSION)/" liveinst.sh
 
 install:
 	mkdir -p $(DESTDIR)/usr/bin
diff --git a/liveinst/liveinst.sh b/liveinst/liveinst.sh
index badb3f5..922525a 100644
--- a/liveinst/liveinst.sh
+++ b/liveinst/liveinst.sh
@@ -37,6 +37,7 @@ for i in raid0 raid1 raid5 raid6 raid456 raid10 dm-mod dm-zero dm-mirror dm-snap
 export ANACONDA_PRODUCTNAME=$( cat /etc/system-release | cut -d ' ' -f 1 )
 export ANACONDA_PRODUCTVERSION=$( cat /etc/system-release | sed -r -e 's/^.*([0-9]+) *\(.*$/\1/' )
 export ANACONDA_BUGURL=${ANACONDA_BUGURL:="https://bugzilla.redhat.com/bugzilla/"}
+export ANACONDAVERSION="@VERSION@"
 
 export PATH=/sbin:/usr/sbin:$PATH
 
-- 
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux