[Midnightbsd-cvs] mports [17567] trunk/Tools/magus/bless/magus-bless.cxx: first pass at using restricted as a flag
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Sep 27 12:07:03 EDT 2014
Revision: 17567
http://svnweb.midnightbsd.org/mports/?rev=17567
Author: laffer1
Date: 2014-09-27 12:07:02 -0400 (Sat, 27 Sep 2014)
Log Message:
-----------
first pass at using restricted as a flag
Modified Paths:
--------------
trunk/Tools/magus/bless/magus-bless.cxx
Modified: trunk/Tools/magus/bless/magus-bless.cxx
===================================================================
--- trunk/Tools/magus/bless/magus-bless.cxx 2014-09-27 15:56:52 UTC (rev 17566)
+++ trunk/Tools/magus/bless/magus-bless.cxx 2014-09-27 16:07:02 UTC (rev 17567)
@@ -87,7 +87,7 @@
}
sprintf(query_def,
- "select pkgname, name, license, description, CONCAT(CONCAT_WS( '-', pkgname, version),'.mport'), version from ports where run=%d AND status!='internal' AND status!='untested' AND status!='fail' ORDER BY pkgname;",
+ "select pkgname, name, license, description, CONCAT(CONCAT_WS( '-', pkgname, version),'.mport'), version, restricted from ports where run=%d AND status!='internal' AND status!='untested' AND status!='fail' ORDER BY pkgname;",
runid);
nontransaction N(C);
@@ -112,6 +112,13 @@
continue;
}
+ if (row[5].as(boolean()))
+ {
+ fprintf(stderr, "File %s is restricted and will be removed.\n", filePath);
+ unlink(filePath);
+ continue;
+ }
+
if (ln.c_str())
{
if (sqlite3_prepare_v2(db,
More information about the Midnightbsd-cvs
mailing list