Mailinglist Archive: zypp-commit (149 mails)

< Previous Next >
[zypp-commit] r5435 - /trunk/libzypp/devel/devel.dmacvicar/YUMDownloader_tp.cc
  • From: kkaempf@xxxxxxxxxxxxxxxx
  • Date: Mon, 23 Apr 2007 13:51:37 -0000
  • Message-id: <20070423135137.77DDF473F3@xxxxxxxxxxxxxxxx>
Author: kkaempf
Date: Mon Apr 23 15:51:37 2007
New Revision: 5435

URL: http://svn.opensuse.org/viewcvs/zypp?rev=5435&view=rev
Log:
check argv/argv

Modified:
    trunk/libzypp/devel/devel.dmacvicar/YUMDownloader_tp.cc

Modified: trunk/libzypp/devel/devel.dmacvicar/YUMDownloader_tp.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/devel/devel.dmacvicar/YUMDownloader_tp.cc?rev=5435&r1=5434&r2=5435&view=diff
==============================================================================
--- trunk/libzypp/devel/devel.dmacvicar/YUMDownloader_tp.cc (original)
+++ trunk/libzypp/devel/devel.dmacvicar/YUMDownloader_tp.cc Mon Apr 23 15:51:37 2007
@@ -29,6 +29,10 @@
 
 int main(int argc, char **argv)
 {
+    if (argc < 3) {
+       cerr << "Usage: " << argv[0] << " <url> <destination>" << std::endl;
+        return 1;
+    }
     try
     {
       ZYpp::Ptr z = getZYpp();

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages