Re: install-module script



Le mercredi 28 février 2007, à 10:30, Elijah Newren a écrit :
> >Also, it seems some people have an account but can't copy the tarballs
> >in the ftp directory. The result is this:
> >http://mail.gnome.org/archives/ftp-release-list/2007-February/msg00159.html
> >
> >Here's a patch to fix this. I don't see how it can be wrong, so I'll
> >commit it soon too, and I'll get a sysadmin to update the script.
> 
> Where's the patch?

Err. It was supposed to be attached to the mail, of course :-)
Here it is.

Vincent

-- 
Les gens heureux ne sont pas pressés.
Index: install-module
===================================================================
--- install-module	(révision 864)
+++ install-module	(copie de travail)
@@ -139,7 +139,10 @@ if mkdir -p $LOCATION/; then : ; else
 	echo "FATAL: Could not create module directory!"
 	exit 1
 fi
-cp -f $TARBALL $LOCATION/
+if cp -f $TARBALL $LOCATION/ ; then : ; else
+	echo "FATAL: Could not copy the tarball!"
+	exit 1
+fi
 # Just in case the original file wasn't group writable
 chmod ug+w,a+r $LOCATION/$FILENAME.$FORMAT
 


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