/[smeserver]/cdrom.image/updates/product.py
ViewVC logotype

Annotation of /cdrom.image/updates/product.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download) (as text)
Sat Jul 30 07:28:39 2005 UTC (19 years, 3 months ago) by slords
Branch: MAIN
Changes since 1.1: +1 -1 lines
Content type: text/x-python
First major pass as anaconda installer
- Install/Upgrade detection working
- Only screens we want are being displayed
- Raid/LVM partitioning all done for installer
- Except for post-install (run, status) install is done
- TODO: post-install script isn't running
- TODO: post-upgrade script isn't working
- TODO: raid migration for upgrades
- TODO: status message for post-{install,upgrade}

1 gordonr 1.1 #
2     # product.py: product identification string
3     #
4     # Copyright 2003 Red Hat, Inc.
5     #
6     # This software may be freely redistributed under the terms of the GNU
7     # library public license.
8     #
9     # You should have received a copy of the GNU Library Public License
10     # along with this program; if not, write to the Free Software
11     # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
12    
13     import os
14    
15     if os.access("/tmp/product/.buildstamp", os.R_OK):
16     path = "/tmp/product/.buildstamp"
17     elif os.access("/.buildstamp", os.R_OK):
18     path = "/.buildstamp"
19     else:
20     path = None
21    
22     if path is None:
23     productName = "anaconda"
24     productVersion = "bluesky"
25     productPath = "CentOS"
26     else:
27     f = open(path, "r")
28     lines = f.readlines()
29     if len(lines) < 4:
30     productName = "anaconda"
31     productVersion = "bluesky"
32     productPath = "CentOS"
33     else:
34     productName = lines[1][:-1]
35     productVersion = lines[2][:-1]
36     productPath = lines[3][:-1]
37    
38    
39     productName = "SME Server"
40 slords 1.2 productVersion = "7.0"
41 gordonr 1.1 productPath = "CentOS"

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed