CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Some indentation fixes.
authorTilman Sauerbeck <tilman@crux.nu>
Wed, 8 Nov 2006 19:44:43 +0000 (20:44 +0100)
committerTilman Sauerbeck <tilman@crux.nu>
Wed, 15 Nov 2006 19:34:33 +0000 (20:34 +0100)
pkgutil.cc

index 13543659cd774ebb40b2856e9a3c9afccbe54bb5..33ee3015cdbeb9cab9e69924959de9232d1ffb4a 100644 (file)
@@ -488,7 +488,7 @@ void pkgutil::ldconfig() const
 
 void pkgutil::pkg_footprint(string& filename) const
 {
-        unsigned int i;
+       unsigned int i;
        struct archive* archive;
        struct archive_entry* entry;
 
@@ -557,17 +557,16 @@ void pkgutil::pkg_footprint(string& filename) const
 
                cout << '\n';
                
-               if (S_ISREG(status->st_mode) &&
-                   archive_read_data_skip(archive))
-                        throw runtime_error_with_errno("could not read " + filename, archive_errno(archive));
-        }
+               if (S_ISREG(status->st_mode) && archive_read_data_skip(archive))
+                       throw runtime_error_with_errno("could not read " + filename, archive_errno(archive));
+       }
    
-        if (i == 0) {
+       if (i == 0) {
                if (archive_errno(archive) == 0)
-                        throw runtime_error("empty package");
-                else
-                        throw runtime_error("could not read " + filename);
-        }
+                       throw runtime_error("empty package");
+               else
+                       throw runtime_error("could not read " + filename);
+       }
 
        archive_read_finish(archive);
 }