Author: wade
Date: 2006-05-30 21:09:05 -0400 (Tue, 30 May 2006)
New Revision: 61293
Modified:
trunk/release/linux-installer/buildlinux-installer
trunk/release/sunos/buildpackage
trunk/release/website/mk-distro-index.py
trunk/release/website/mk-repos.py
Log:
mk-distro-index.py:
-fix package_basepath to be able to run on go-mono.com
mk-repos.py:
-search for yast repo creator in $HOME/bin and then find in path
buildlinux-installer:
-Use release version as a string, not an integer
sunos/buildpackage:
-fix to correctly use a bundle
Modified: trunk/release/linux-installer/buildlinux-installer
===================================================================
--- trunk/release/linux-installer/buildlinux-installer 2006-05-30 22:42:05 UTC
(rev 61292)
+++ trunk/release/linux-installer/buildlinux-installer 2006-05-31 01:09:05 UTC
(rev 61293)
@@ -106,7 +106,7 @@
mono_version = sys.argv[1]
if len(sys.argv) > 2:
mono_release_version = sys.argv[2]
-else: mono_release_version = 0
+else: mono_release_version = "0"
output = os.path.join(prefix, 'output', mono_version, 'linux-installer',
mono_release_version)
@@ -145,7 +145,8 @@
# Cleanup
-shutil.rmtree(buildroot)
+if os.path.exists(buildroot):
+ shutil.rmtree(buildroot)
os.mkdir(buildroot)
# Download the stock and custom rpms if they don't exist already and add them
to the extraction list
Modified: trunk/release/sunos/buildpackage
===================================================================
--- trunk/release/sunos/buildpackage 2006-05-30 22:42:05 UTC (rev 61292)
+++ trunk/release/sunos/buildpackage 2006-05-31 01:09:05 UTC (rev 61293)
@@ -79,12 +79,10 @@
# Extract noarch rpms
for package in rpm_packages_to_include[target]:
package = packaging.package(env, package)
- latest_ver_dir = package.path + os.sep +
utils.get_latest_ver(package.path)
- for file in os.listdir(latest_ver_dir):
- if not re.compile('\.spec').search(file):
- utils.extract_file(latest_ver_dir + os.sep +
file, preserve_symlinks=1)
- packages_used += [ file ]
+ for file in package.get_files():
+ utils.extract_file(file, preserve_symlinks=1)
+ packages_used += [ os.path.basename(file) ]
print "Cleaning up"
Modified: trunk/release/website/mk-distro-index.py
===================================================================
--- trunk/release/website/mk-distro-index.py 2006-05-30 22:42:05 UTC (rev
61292)
+++ trunk/release/website/mk-distro-index.py 2006-05-31 01:09:05 UTC (rev
61293)
@@ -52,7 +52,7 @@
<xmp class='shell'>
rug sa http://go-mono.com/%s
rug sub mono-%s
- rug in mono-complete gtk-sharp
+ rug in mono-complete gtk-sharp-complete
</xmp>
<p>Note: some versions of Red Carpet frequently have IOError
timeouts. This is a bug in Red Carpet. If Red Carpet for your distro
frequently has this problem, please use another installation method.</p>
@@ -180,7 +180,7 @@
RPMS = []
SPECS = []
for package in ARGS:
- pack_obj = packaging.package(env, package,
bundle_obj=bundle_conf)
+ pack_obj = packaging.package(env, package,
bundle_obj=bundle_conf, package_basepath=package_src_dir)
#if pack_obj.name == "gtk-sharp":
pdb.set_trace()
if not pack_obj.valid_use_platform(env.name):
Modified: trunk/release/website/mk-repos.py
===================================================================
--- trunk/release/website/mk-repos.py 2006-05-30 22:42:05 UTC (rev 61292)
+++ trunk/release/website/mk-repos.py 2006-05-31 01:09:05 UTC (rev 61293)
@@ -154,8 +154,13 @@
# The wiki page didn't say this directory.yast was
needed, but newer zypp installation sources seem to require it
os.system("cd setup/descr ; ls -A1 > directory.yast")
- os.system("ls -A1 > directory.yast;
create_package_descr")
+ # Look in the $HOME/bin and if it's not there, rely on
it being in the path
+ create_yast_path = os.path.join(os.environ['HOME'],
'bin', 'create_package_descr')
+ if not os.path.exists(create_yast_path):
+ create_yast_path = 'create_package_descr'
+ os.system("ls -A1 > directory.yast; " +
create_yast_path )
+
os.chdir(current)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches