]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- coding style 776/head
authorArvin Schnell <aschnell@suse.de>
Wed, 25 Jan 2023 11:52:12 +0000 (12:52 +0100)
committerArvin Schnell <aschnell@suse.de>
Wed, 25 Jan 2023 11:52:12 +0000 (12:52 +0100)
zypp-plugin/forwarding-zypp-plugin.cc
zypp-plugin/snapper-zypp-plugin.cc
zypp-plugin/snapper-zypp-plugin.h
zypp-plugin/solvable-matcher.cc
zypp-plugin/zypp-commit-plugin.cc
zypp-plugin/zypp-commit-plugin.h
zypp-plugin/zypp-plugin.cc
zypp-plugin/zypp-plugin.h

index fc49f67068be2883fcbfa037a5f59f76ea7a5c4b..bfba0c0488dd1556b548c11a0d881b8b92e8dd3d 100644 (file)
  * find current contact information at www.suse.com.
  */
 
-#include <string>
-
-using namespace std;
 
+#include <string>
 #include <boost/process.hpp>
 
-namespace bp = boost::process;
-
 #include "zypp-plugin.h"
 
+using namespace std;
+namespace bp = boost::process;
+
 
 /**
  * A middleware that can wrap an actual plugin for enhanced validation.
@@ -88,6 +87,7 @@ main(int argc, char** argv)
 {
     if (argc != 2)
        throw runtime_error("Usage: forwarding-zypp-plugin ANOTHER_ZYPP_PLUGIN");
+
     ForwardingZyppPlugin plugin(argv[1]);
     return plugin.main();
 }
index 27308e8bc48b1be1390ee7a8e2ec5665d927bfe1..6fab74b04d1c3092a7f5f8167b736899423cb0da 100644 (file)
@@ -19,6 +19,7 @@
  * find current contact information at www.suse.com.
  */
 
+
 #include <stdlib.h>
 #include <sys/types.h>
 #include <unistd.h>
index cb519cd1fc2c58b002172abf4698e73527264745..c2c2215b26ed2ffa51e46103a0ab462d5da8fd2f 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef SNAPPER_ZYPP_COMMIT_PLUGIN_H
 #define SNAPPER_ZYPP_COMMIT_PLUGIN_H
 
+
 #include "zypp-commit-plugin.h"
 #include "solvable-matcher.h"
 
index ae1cdde05317628daada81bc85e1c09bd72f739d..b02647cf1aa19d12f957b0b76bd593d362069088 100644 (file)
@@ -19,6 +19,7 @@
  * find current contact information at www.suse.com.
  */
 
+
 #include "solvable-matcher.h"
 
 #include <fnmatch.h>
index aa4e09038c78e10d14c187d9ee01afeea9fa6083..55f5e5dc11aa18383777836fbe1a78903c124c8c 100644 (file)
 ZyppPlugin::Message
 ZyppCommitPlugin::dispatch(const Message& msg)
 {
-    if (msg.command == "PLUGINBEGIN") {
+    if (msg.command == "PLUGINBEGIN")
        return plugin_begin(msg);
-    }
 
-    if (msg.command == "PLUGINEND") {
+    if (msg.command == "PLUGINEND")
        return plugin_end(msg);
-    }
 
-    if (msg.command == "COMMITBEGIN") {
+    if (msg.command == "COMMITBEGIN")
        return commit_begin(msg);
-    }
 
-    if (msg.command == "COMMITEND") {
+    if (msg.command == "COMMITEND")
        return commit_end(msg);
-    }
 
     return ZyppPlugin::dispatch(msg);
 }
index 1282e345305f893c689444d6b0c02bf3c5bd4cd6..03860570255342b248c03602df0872a4bac88839 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef ZYPP_COMMIT_PLUGIN_H
 #define ZYPP_COMMIT_PLUGIN_H
 
+
 #include "zypp-plugin.h"
 
 
index 0867930d90511b4fba08eed90bbe6349d51c0596..b7027cd65a61e07dd9d66345b1f74f874def45df 100644 (file)
@@ -19,6 +19,7 @@
  * find current contact information at www.suse.com.
  */
 
+
 #include <iostream>
 #include <boost/algorithm/string/trim.hpp>
 #include <string>
@@ -38,9 +39,11 @@ ZyppPlugin::main()
        Message msg = read_message(pin);
        if (pin.eof())
            break;
+
        Message reply = dispatch(msg);
        write_message(pout, reply);
     }
+
     return 0;
 }
 
index 22de4c9cca64940770578e2af6697c551401ebf4..bbe8686019dd1ae119b4787305427cfa9c039a1a 100644 (file)
 #ifndef ZYPP_PLUGIN_H
 #define ZYPP_PLUGIN_H
 
+
 #include <iostream>
 #include <map>
 #include <string>
 
+
 class ZyppPlugin
 {
 public: