DO_NOT_ENCRYPT_CONTENT_ON_CLOUD. Do not encrypt content on the cloud. This information applies to System Center 2012 Configuration Manager SP1 or later, and System Center 2012 R2 Configuration Manager or later.
DO_NOT_DOWNLOAD. Do not download the package to branch distribution points, as it will be pre-staged.
PERSIST_IN_CACHE. Persist the package in the cache.
USE_BINARY_DELTA_REP. Marks the package to be replicated by distribution manager using binary delta replication.
NO_PACKAGE. The package does not require distribution points.
USE_SPECIAL_MIF. This value determines if Configuration Manager uses MIFName, MIFPublisher, and MIFVersion for MIF file status matching. Otherwise, Configuration Manager uses Name, Manufacturer, and Version for status matching. For more information, see the Remarks section later in this topic.
DISTRIBUTE_ON_DEMAND. The package is allowed to be distributed on demand to branch distribution points.
I extended to the code to support these additional attributes.
It works exactly the same was as previous version of this routine other than it now checks for the other possibilities that make up “PkgFlags” and adds the extra attributes to the object for each package.