Update of /cvsroot/rubynet/rubynet/src/clients/rubynet/modules
In directory usw-pr-cvs1:/tmp/cvs-serv23164/src/clients/rubynet/modules
Modified Files:
install.rb
Log Message:
* Minor formatting
* Fixed the creation of the XML file to take in the @arg instance var.
Index: install.rb
===================================================================
RCS file: /cvsroot/rubynet/rubynet/src/clients/rubynet/modules/install.rb,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- install.rb 11 Jul 2002 03:20:13 -0000 1.5
+++ install.rb 12 Jul 2002 11:03:30 -0000 1.6
@@ -23,7 +23,7 @@
public
def execute
- package_file = File.new(arg)
+ package_file = File.new(@arg)
collect_files(package_file)
write_local_db(package_file)
install_files
@@ -41,10 +41,10 @@
xd = XML::Document.file(filename)
xd.xpath_find(FILE_XPATH).each do |node|
file = Rubynet::Installee.new(node.child('filename').to_s,
- node.child('path').to_s,
- node.child('mode').to_s,
- node.child('content').to_s,
- node.child('content').property('encoding').to_s)
+ node.child('path').to_s,
+ node.child('mode').to_s,
+ node.child('content').to_s,
+ node.child('content').property('encoding').to_s)
@files << file
end
|