PackageAPI.delete() deletes packages regardless they're in repos or not. This is very dangerous. If a package is in a repo, delete() should fail and report this situation to client. Administrator should manually remove packages from repos before using delete().
Fixed: f78fe0d92d70d59ecaf36767eb11b7e5eeb1be0b
Build: 0.145
verified [root@preethi upload]# rpm -q pulp pulp-0.0.159-1.fc14.noarch [root@preethi upload]# pulp-admin -u admin -p admin content upload /root/upload/gofer-0.27-1.fc14.noarch.rpm -v --nosig * Starting Content Upload * Performing Content Uploads to Pulp server Successfully uploaded [gofer-0.27-1.fc14.noarch.rpm] to server * Content Upload complete. [root@preethi upload]# [root@preethi upload]# [root@preethi upload]# [root@preethi upload]# pulp-admin -u admin -p admin content delete -f gofer Content with filename [gofer] could not be found on server; skipping delete [root@preethi upload]# [root@preethi upload]# pulp-admin -u admin -p admin content delete -f gofer-0.27-1.fc14.noarch.rpm Successfully deleted content [gofer-0.27-1.fc14.noarch.rpm] from pulp server [root@preethi upload]# [root@preethi upload]# [root@preethi upload]# pulp-admin -u admin -p admin content upload /root/upload/gofer-0.27-1.fc14.noarch.rpm -v --nosig -r upload2 * Starting Content Upload * Performing Content Uploads to Pulp server Successfully uploaded [gofer-0.27-1.fc14.noarch.rpm] to server * Performing Repo Associations Content association Complete for Repo [upload2]: Packages: gofer-0.27-1.fc14.noarch.rpm Files: None * Content Upload complete. [root@preethi upload]# pulp-admin -u admin -p admin content delete -f gofer-0.27-1.fc14.noarch.rpm Content with filename [gofer-0.27-1.fc14.noarch.rpm] is currently associated a repository; skipping delete
Closing with Community Release 15 pulp-0.0.223-4.