Author: wade
Date: 2006-06-02 12:16:06 -0400 (Fri, 02 Jun 2006)
New Revision: 61414

Modified:
   trunk/release/packaging/upload-prod
   trunk/release/pyutils/packaging.py
   trunk/release/website/mk-distro-index.py
   trunk/release/website/mk-repos.py
   trunk/release/website/mk-sources-index.py
Log:
website/*:
-use os.path.abspath so that relative dirnames can be passed from the command 
line

website/mk-distro-index.py:
-only create a zip file if there are more than 1 rpms (silly to have a zip 
download for one rpm)

packaging/upload-prod:
-make sure bundle file exists

pyutils/packaging.py:
-sort files returned by get_files_relpath, so that order on webpage generation 
will be consistent



Modified: trunk/release/packaging/upload-prod
===================================================================
--- trunk/release/packaging/upload-prod 2006-06-02 16:07:46 UTC (rev 61413)
+++ trunk/release/packaging/upload-prod 2006-06-02 16:16:06 UTC (rev 61414)
@@ -10,6 +10,11 @@
        exit 1
 fi
 
+if [ ! -e  bundles/$BUNDLE ] ; then
+       echo "Bundle $BUNDLE does not exist"
+       exit 1
+fi
+
 if test x$DRYRUN = xdry ; then
        extra_options=n
        echo "Doing dry run..."

Modified: trunk/release/pyutils/packaging.py
===================================================================
--- trunk/release/pyutils/packaging.py  2006-06-02 16:07:46 UTC (rev 61413)
+++ trunk/release/pyutils/packaging.py  2006-06-02 16:16:06 UTC (rev 61414)
@@ -346,6 +346,9 @@
 
                        os.chdir(current_dir)
 
+               # Sort the files (for consistency on the web pages)
+               files.sort()
+
                return files
 
        def get_version(self, fail_on_missing=True):

Modified: trunk/release/website/mk-distro-index.py
===================================================================
--- trunk/release/website/mk-distro-index.py    2006-06-02 16:07:46 UTC (rev 
61413)
+++ trunk/release/website/mk-distro-index.py    2006-06-02 16:16:06 UTC (rev 
61414)
@@ -139,7 +139,7 @@
         sys.exit(1)
 
 bundle = sys.argv[1]
-package_src_dir = sys.argv[2]
+package_src_dir = os.path.abspath(sys.argv[2])
 output_dir = sys.argv[3]
 
 bundle_conf = packaging.bundle(bundle_name=bundle)
@@ -207,11 +207,15 @@
                        if os.path.exists(zip_filename):
                                os.unlink(zip_filename)
 
-                       # rpms are compressed anyways -- doing any compression 
is a waste of time
-                       print "Creating zip: " + zipname
-                       os.system("zip -j -0 %s %s" % (zip_filename, " 
".join(RPMS)) )
-                       
-                       out.write("<p><a href='%s.zip'><img src='/zip-icon.png' 
/>All of these RPMs in a ZIP file</a></p>" % (zipname))
+                       # If there are more than one rpms to be in the zip file
+                       if len(RPMS) > 1:
+                               print "Creating zip: " + zipname
+                               # rpms are compressed anyways -- doing any 
compression is a waste of time
+                               os.system("zip -j -0 %s %s" % (zip_filename, " 
".join(RPMS)) )
+                               
+                               out.write("<p><a href='%s.zip'><img 
src='/zip-icon.png' />All of these RPMs in a ZIP file</a></p>" % (zipname))
+
+
                        out.write("<ul>")
                        arc_out.write("<ul>")
 

Modified: trunk/release/website/mk-repos.py
===================================================================
--- trunk/release/website/mk-repos.py   2006-06-02 16:07:46 UTC (rev 61413)
+++ trunk/release/website/mk-repos.py   2006-06-02 16:16:06 UTC (rev 61414)
@@ -27,7 +27,7 @@
         sys.exit(1)
 
 bundle = sys.argv[1]
-package_src_dir = sys.argv[2]
+package_src_dir = os.path.abspath(sys.argv[2])
 output_dir = sys.argv[3]
 
 bundle_conf = packaging.bundle(bundle_name=bundle)

Modified: trunk/release/website/mk-sources-index.py
===================================================================
--- trunk/release/website/mk-sources-index.py   2006-06-02 16:07:46 UTC (rev 
61413)
+++ trunk/release/website/mk-sources-index.py   2006-06-02 16:16:06 UTC (rev 
61414)
@@ -19,7 +19,7 @@
        sys.exit(1)
 
 bundle = sys.argv[1]
-sources_dir = sys.argv[2]
+sources_dir = os.path.abspath(sys.argv[2])
 output_dir = sys.argv[3]
 
 bundle_conf = packaging.bundle(bundle_name=bundle)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to